aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_compile.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-10 16:45:22 +1000
committerDavid Walter Seikel2012-02-10 16:45:22 +1000
commit79d87a9bf9cec73add710cc9983fc7aa16a8912b (patch)
treed464f18bf473ae2d9d02a3c9138dcbf6acd9bb7d /LuaSL/src/LuaSL_compile.c
parentMove sound functions to media. (diff)
downloadSledjHamr-79d87a9bf9cec73add710cc9983fc7aa16a8912b.zip
SledjHamr-79d87a9bf9cec73add710cc9983fc7aa16a8912b.tar.gz
SledjHamr-79d87a9bf9cec73add710cc9983fc7aa16a8912b.tar.bz2
SledjHamr-79d87a9bf9cec73add710cc9983fc7aa16a8912b.tar.xz
More design notes.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_compile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index 29ea47c..a65b84b 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -2276,9 +2276,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants)
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, "local _LSL = require(\"LSL\")\n\n");
2279 // TODO - Use the scripts UUID instead of the file name here. 2279 // TODO - Use the scripts UUID instead of the file name here, or something.
2280 // Hmm, copies of the same script in the same prim would have the same UUID, but different name, though they would run independently.
2281 // Copies of the same script in different prims could have the same UUID AND the same name.
2282 fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName); 2280 fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName);
2283 outputLeaf(out, OM_LUA, compiler.ast); 2281 outputLeaf(out, OM_LUA, compiler.ast);
2284 fprintf(out, "\n\n_LSL.mainLoop(_SID, _defaultState)\n"); // This actually starts the script running. 2282 fprintf(out, "\n\n_LSL.mainLoop(_SID, _defaultState)\n"); // This actually starts the script running.