From 874f0095efcdd0fcbf19900cffd626812bb74a8b Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 23 Jan 2012 17:04:08 +1000 Subject: 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. --- LuaSL/src/LuaSL_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'LuaSL/src/LuaSL_main.c') 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) if (ext) { -#ifdef LUASL_DEBUG - if (0 == scriptCount) -#endif + if ((!LUASL_DEBUG) || (0 == scriptCount)) if (0 == strcmp(ext, ".lsl")) { scriptCount++; -- cgit v1.1