summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h52
1 files changed, 24 insertions, 28 deletions
diff --git a/src/debug.h b/src/debug.h
index 7da72da1d..ce454c962 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -28,37 +28,33 @@
* 6.. - extremely detailed spamming
*/
-#ifdef NO_DEBUG_MESSAGES
- #define DEBUG(name, level, ...) { }
-#else /* NO_DEBUG_MESSAGES */
- /**
- * Output a line of debugging information.
- * @param name Category
- * @param level Debugging level, higher levels means more detailed information.
- */
- #define DEBUG(name, level, ...) if ((level) == 0 || _debug_ ## name ## _level >= (level)) debug(#name, __VA_ARGS__)
-
- extern int _debug_driver_level;
- extern int _debug_grf_level;
- extern int _debug_map_level;
- extern int _debug_misc_level;
- extern int _debug_net_level;
- extern int _debug_sprite_level;
- extern int _debug_oldloader_level;
- extern int _debug_npf_level;
- extern int _debug_yapf_level;
- extern int _debug_freetype_level;
- extern int _debug_script_level;
- extern int _debug_sl_level;
- extern int _debug_gamelog_level;
- extern int _debug_desync_level;
- extern int _debug_console_level;
+/**
+ * Output a line of debugging information.
+ * @param name Category
+ * @param level Debugging level, higher levels means more detailed information.
+ */
+#define DEBUG(name, level, ...) if ((level) == 0 || _debug_ ## name ## _level >= (level)) debug(#name, __VA_ARGS__)
+
+extern int _debug_driver_level;
+extern int _debug_grf_level;
+extern int _debug_map_level;
+extern int _debug_misc_level;
+extern int _debug_net_level;
+extern int _debug_sprite_level;
+extern int _debug_oldloader_level;
+extern int _debug_npf_level;
+extern int _debug_yapf_level;
+extern int _debug_freetype_level;
+extern int _debug_script_level;
+extern int _debug_sl_level;
+extern int _debug_gamelog_level;
+extern int _debug_desync_level;
+extern int _debug_console_level;
#ifdef RANDOM_DEBUG
- extern int _debug_random_level;
+extern int _debug_random_level;
#endif
- void CDECL debug(const char *dbg, const char *format, ...) WARN_FORMAT(2, 3);
-#endif /* NO_DEBUG_MESSAGES */
+void CDECL debug(const char *dbg, const char *format, ...) WARN_FORMAT(2, 3);
char *DumpDebugFacilityNames(char *buf, char *last);
void SetDebugString(const char *s);