diff options
author | David Walter Seikel | 2012-01-23 17:04:08 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-23 17:04:08 +1000 |
commit | 874f0095efcdd0fcbf19900cffd626812bb74a8b (patch) | |
tree | e31d07197c8f675c2b6e8aa0f57c87ee35ad2dae /LuaSL/src/LuaSL_main.c | |
parent | Got distracted during debugging. Save for later. (diff) | |
download | SledjHamr-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 'LuaSL/src/LuaSL_main.c')
-rw-r--r-- | LuaSL/src/LuaSL_main.c | 4 |
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++; |