aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_main.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-23 17:04:08 +1000
committerDavid Walter Seikel2012-01-23 17:04:08 +1000
commit874f0095efcdd0fcbf19900cffd626812bb74a8b (patch)
treee31d07197c8f675c2b6e8aa0f57c87ee35ad2dae /LuaSL/src/LuaSL_main.c
parentGot distracted during debugging. Save for later. (diff)
downloadSledjHamr-874f0095efcdd0fcbf19900cffd626812bb74a8b.zip
SledjHamr-874f0095efcdd0fcbf19900cffd626812bb74a8b.tar.gz
SledjHamr-874f0095efcdd0fcbf19900cffd626812bb74a8b.tar.bz2
SledjHamr-874f0095efcdd0fcbf19900cffd626812bb74a8b.tar.xz
Replace #ifdef with if or #if.
Letting the compiler remove things with unreachable code optimisations, but still allowing it to check the code it removes.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/LuaSL/src/LuaSL_main.c b/LuaSL/src/LuaSL_main.c
index 3ec8f9b..f14a8d0 100644
--- a/LuaSL/src/LuaSL_main.c
+++ b/LuaSL/src/LuaSL_main.c
@@ -75,9 +75,7 @@ void dirList_cb(const char *name, const char *path, void *data)
75 75
76 if (ext) 76 if (ext)
77 { 77 {
78#ifdef LUASL_DEBUG 78 if ((!LUASL_DEBUG) || (0 == scriptCount))
79 if (0 == scriptCount)
80#endif
81 if (0 == strcmp(ext, ".lsl")) 79 if (0 == strcmp(ext, ".lsl"))
82 { 80 {
83 scriptCount++; 81 scriptCount++;