From 12ab4c4aaf9c6e4037a0ffb88b2e8615cbc4d830 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 10 Aug 2014 04:21:24 +1000 Subject: Thread all of compiling, or thread nothing. --- src/LuaSL/LuaSL.h | 1 - src/LuaSL/LuaSL_LSL_tree.h | 1 + src/LuaSL/LuaSL_compile.c | 4 +--- 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/LuaSL') diff --git a/src/LuaSL/LuaSL.h b/src/LuaSL/LuaSL.h index f696f03..54e7fa7 100644 --- a/src/LuaSL/LuaSL.h +++ b/src/LuaSL/LuaSL.h @@ -12,7 +12,6 @@ typedef struct _gameGlobals gameGlobals; // Define this here, so LuaSL_threads.h #include "LumbrJack.h" #include "Runnr.h" -#define COMPILE_THREADED 0 struct _gameGlobals { diff --git a/src/LuaSL/LuaSL_LSL_tree.h b/src/LuaSL/LuaSL_LSL_tree.h index 30a12f5..5b61926 100644 --- a/src/LuaSL/LuaSL_LSL_tree.h +++ b/src/LuaSL/LuaSL_LSL_tree.h @@ -3,6 +3,7 @@ #define __LUASL_TREE_H__ #define LUASL_DEBUG 0 +#define COMPILE_THREADED 0 #define LUASL_DIFF_CHECK 0 #define LUASL_BAD_CHECK 0 diff --git a/src/LuaSL/LuaSL_compile.c b/src/LuaSL/LuaSL_compile.c index 5da2724..286681e 100644 --- a/src/LuaSL/LuaSL_compile.c +++ b/src/LuaSL/LuaSL_compile.c @@ -2373,9 +2373,7 @@ boolean compileLSL(LuaSL_compiler *compiler) // Compile the Lua source code. compiler->compiler.luaName = strdup(luaName); compiler->compiler.bugCount = compiler->script.bugCount; -#if !COMPILE_THREADED - compileScript(&compiler->compiler); -#endif + compileScript(&compiler->compiler, COMPILE_THREADED); compiler->result = TRUE; } else -- cgit v1.1