diff options
author | rubidium <rubidium@openttd.org> | 2009-11-14 11:57:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-14 11:57:55 +0000 |
commit | 629b7fcfe54eb918ea53f063da2d1979da7ea1c4 (patch) | |
tree | 9e268dd772c9ca4bb751d79d87dcb764e36ec7c8 /src | |
parent | 94261ad01a1ebb5e19fcf37c3e623a0676b2c967 (diff) | |
download | openttd-629b7fcfe54eb918ea53f063da2d1979da7ea1c4.tar.xz |
(svn r18070) -Fix: some possible unwanted side effects if using some sorts of boolean expressions in DEBUG
Diffstat (limited to 'src')
-rw-r--r-- | src/debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.h b/src/debug.h index 0355bf592..b17597d80 100644 --- a/src/debug.h +++ b/src/debug.h @@ -29,7 +29,7 @@ #ifdef NO_DEBUG_MESSAGES #define DEBUG(name, level, ...) { } #else /* NO_DEBUG_MESSAGES */ - #define DEBUG(name, level, ...) if (level == 0 || _debug_ ## name ## _level >= level) debug(#name, __VA_ARGS__) + #define DEBUG(name, level, ...) if ((level) == 0 || _debug_ ## name ## _level >= (level)) debug(#name, __VA_ARGS__) extern int _debug_ai_level; extern int _debug_driver_level; |