Functions related to debugging. More...
Go to the source code of this file.
Defines | |
#define | DEBUG(name, level,...) if ((level) == 0 || _debug_ ## name ## _level >= (level)) debug(#name, __VA_ARGS__) |
#define | TIC() |
#define | TOC(str, count) |
Functions | |
void CDECL | debug (const char *dbg, const char *format,...) WARN_FORMAT(2 |
void CDECL void | SetDebugString (const char *s) |
const char * | GetDebugString () |
Print out the current debug-level Just return a string with the values of all the debug categorites. | |
void | ShowInfo (const char *str) |
void CDECL | ShowInfoF (const char *str,...) WARN_FORMAT(1 |
void CDECL const char * | GetLogPrefix () |
Get the prefix for logs; if show_date_in_logs is enabled it returns the date, otherwise it returns nothing. | |
Variables | |
int | _debug_ai_level |
int | _debug_driver_level |
int | _debug_grf_level |
int | _debug_map_level |
int | _debug_misc_level |
int | _debug_net_level |
int | _debug_sprite_level |
int | _debug_oldloader_level |
int | _debug_npf_level |
int | _debug_yapf_level |
int | _debug_freetype_level |
int | _debug_sl_level |
int | _debug_gamelog_level |
int | _debug_desync_level |
int | _debug_console_level |
Functions related to debugging.
Definition in file debug.h.
#define TIC | ( | ) |
#define TOC | ( | str, | |||
count | ) |
const char* GetDebugString | ( | ) |
void CDECL const char* GetLogPrefix | ( | ) |
Get the prefix for logs; if show_date_in_logs is enabled it returns the date, otherwise it returns nothing.
Definition at line 189 of file debug.cpp.
References _settings_client, ClientSettings::gui, and GUISettings::show_date_in_logs.
Referenced by IConsolePrint().