diff options
author | celestar <celestar@openttd.org> | 2006-12-27 14:51:55 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-12-27 14:51:55 +0000 |
commit | 3a1d7ccdac3fee443bd43ba99d9b977f3fba80c8 (patch) | |
tree | 7c865d7dcb7a7141686fb613d4b11ee055af75ed | |
parent | fe202bc518eef51dc8b18aee1222f3017940a62b (diff) | |
download | openttd-3a1d7ccdac3fee443bd43ba99d9b977f3fba80c8.tar.xz |
(svn r7579) -Fix: upon merging the bridge branch, I accidently reverted 7571. Re-revert it. Sorry.
-rw-r--r-- | debug.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -20,7 +20,11 @@ #ifdef NO_DEBUG_MESSAGES #define DEBUG(name, level, ...) #else - #define DEBUG(name, level, ...) if (level == 0 || _debug_ ## name ## _level >= level) debug(#name, __VA_ARGS__) + #if defined(__GNUC__) && (__GNUC__ < 3) + #define DEBUG(name, level, args...) if ((level == 0) || ( _debug_ ## name ## _level >= level)) debug(#name, args) + #else + #define DEBUG(name, level, ...) if (level == 0 || _debug_ ## name ## _level >= level) debug(#name, __VA_ARGS__) + #endif extern int _debug_ai_level; extern int _debug_driver_level; |