diff options
author | rubidium <rubidium@openttd.org> | 2008-12-29 21:50:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-29 21:50:25 +0000 |
commit | 3c6add5293f64f7335fe0ef84606b146ce21a117 (patch) | |
tree | aec6feff3be34ba1d2dd8bd06c23da37e33ff3c1 /src/debug.h | |
parent | ad1c52abf86d241c024a29b5e6d1c2f10f072d1f (diff) | |
download | openttd-3c6add5293f64f7335fe0ef84606b146ce21a117.tar.xz |
(svn r14772) -Codechange: make the "dump log of game to reproduce" desync debug stuff a runtime configurable debug option instead of a compile time option.
Diffstat (limited to 'src/debug.h')
-rw-r--r-- | src/debug.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/debug.h b/src/debug.h index 8ab897b2e..c7a71c67a 100644 --- a/src/debug.h +++ b/src/debug.h @@ -48,6 +48,7 @@ extern int _debug_sl_level; extern int _debug_station_level; extern int _debug_gamelog_level; + extern int _debug_desync_level; void CDECL debug(const char *dbg, ...); #endif /* NO_DEBUG_MESSAGES */ @@ -101,16 +102,4 @@ const char *GetDebugString(); void ShowInfo(const char *str); void CDECL ShowInfoF(const char *str, ...); -#ifdef DEBUG_DUMP_COMMANDS - void CDECL DebugDumpCommands(const char *s, ...); -#else /* DEBUG_DUMP_COMMANDS */ - /* when defined as an empty function with variable argument list, - * it can't be inlined - so define it as an empty macro */ - #if defined(__GNUC__) && (__GNUC__ < 3) - #define DebugDumpCommands(s, args...) - #else - #define DebugDumpCommands(s, ...) - #endif -#endif /* DEBUG_DUMP_COMMANDS */ - #endif /* DEBUG_H */ |