aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_compile.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-05 18:19:39 +1000
committerDavid Walter Seikel2012-02-05 18:19:39 +1000
commit5fc1d9cce112bd0df3604be3a9efbc43ff5170a8 (patch)
tree7f3adb04e6b71cdbc841c8cde641b39b151e6d65 /LuaSL/src/LuaSL_compile.c
parentTell the scripts to quit after a short delay. (diff)
downloadSledjHamr-5fc1d9cce112bd0df3604be3a9efbc43ff5170a8.zip
SledjHamr-5fc1d9cce112bd0df3604be3a9efbc43ff5170a8.tar.gz
SledjHamr-5fc1d9cce112bd0df3604be3a9efbc43ff5170a8.tar.bz2
SledjHamr-5fc1d9cce112bd0df3604be3a9efbc43ff5170a8.tar.xz
Do script quitting differently, using the wire protocol method, which means I got to debug that.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index 72d94b9..f840b69 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -2275,7 +2275,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants)
2275 2275
2276 fprintf(out, "--// Generated code goes here.\n\n"); 2276 fprintf(out, "--// Generated code goes here.\n\n");
2277 fprintf(out, "local _bit = require(\"bit\")\n"); 2277 fprintf(out, "local _bit = require(\"bit\")\n");
2278 fprintf(out, "local _LSL = require(\"LSL\")\n\n"); 2278 fprintf(out, "_LSL = require(\"LSL\")\n\n"); // Local might be quicker, but looks like we need global for pcall(), it has it's own local stack I think.
2279 // TODO - Use the scripts UUID instead of the file name here. 2279 // TODO - Use the scripts UUID instead of the file name here.
2280 fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName); 2280 fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName);
2281 outputLeaf(out, OM_LUA, compiler.ast); 2281 outputLeaf(out, OM_LUA, compiler.ast);