summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-11 00:30:32 +0000
committerrubidium <rubidium@openttd.org>2008-01-11 00:30:32 +0000
commit04f936c2c67a58f09bb307f9b021ab7a11b885da (patch)
tree05e3aa4702dd2e570adeaebdf8acd63559e5165f /src/debug.h
parente5d33482b49afdfa91fb0e61b210479346e47484 (diff)
downloadopenttd-04f936c2c67a58f09bb307f9b021ab7a11b885da.tar.xz
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/debug.h b/src/debug.h
index 30b495e6f..4432a5666 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -132,4 +132,10 @@ 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 */
+ static inline void DebugDumpCommands(const char *s, ...) {}
+#endif /* DEBUG_DUMP_COMMANDS */
+
#endif /* DEBUG_H */