summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-06-12 11:21:41 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-13 12:45:45 +0200
commit352dbdd570c3bd64ddcf0d4c7473107ad3de622e (patch)
tree3bf942ac58380acc01aacda719507b9bd3a375be /src/debug.h
parent55a11710a6c0f7942f3947711f2050c34782c39d (diff)
downloadopenttd-352dbdd570c3bd64ddcf0d4c7473107ad3de622e.tar.xz
Cleanup: remove old DEBUG macro and debug function
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/debug.h b/src/debug.h
index 915d87efa..fb33bcf2d 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -15,7 +15,7 @@
#include "3rdparty/fmt/format.h"
/* Debugging messages policy:
- * These should be the severities used for direct DEBUG() calls
+ * These should be the severities used for direct Debug() calls
* maximum debugging level should be 10 if really deep, deep
* debugging is needed.
* (there is room for exceptions, but you have to have a good cause):
@@ -38,13 +38,6 @@ void debug_print(const char *dbg, const char *buf);
*/
#define Debug(name, level, format_string, ...) if ((level) == 0 || _debug_ ## name ## _level >= (level)) debug_print(#name, fmt::format(FMT_STRING(format_string), ## __VA_ARGS__).c_str())
-/**
- * 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;
@@ -64,8 +57,6 @@ extern int _debug_console_level;
extern int _debug_random_level;
#endif
-void CDECL debug(const char *dbg, const char *format, ...) WARN_FORMAT(2, 3);
-
char *DumpDebugFacilityNames(char *buf, char *last);
void SetDebugString(const char *s);
const char *GetDebugString();