From 420e343c31dee9e27fe193d54f9b06bbc822a467 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 5 Feb 2012 14:21:07 +1000 Subject: Commentry. --- LuaSL/src/LuaSL_compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LuaSL/src') diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 3da5632..0a194a8 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -2284,8 +2284,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants) // Compile the Lua source code. L = luaL_newstate(); luaL_openlibs(L); - /* This ends up pushing a function onto the stack for a lua_pcall() to use. - * The function is the compiled code. */ + // This ends up pushing a function onto the stack. The function is the compiled code. err = luaL_loadfile(L, luaName); if (err) { @@ -2299,6 +2298,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants) } else { + // Write the compiled code to a file. strcat(luaName, ".lua.out"); out = fopen(luaName, "w"); if (out) -- cgit v1.1