File diff r28619:4d33b7a6bc23 → r28620:953e949c2631
src/debug.h
Show inline comments
 
@@ -30,12 +30,12 @@
 

	
 
/**
 
 * Ouptut a line of debugging information.
 
 * @param name The category of debug information.
 
 * @param category The category of debug information.
 
 * @param level The maximum debug level this message should be shown at. When the debug level for this category is set lower, then the message will not be shown.
 
 * @param format_string The formatting string of the message.
 
 */
 
#define Debug(name, level, format_string, ...) if ((level) == 0 || _debug_ ## name ## _level >= (level)) DebugPrint(#name, fmt::format(FMT_STRING(format_string), ## __VA_ARGS__))
 
void DebugPrint(const char *level, const std::string &message);
 
#define Debug(category, level, format_string, ...) if ((level) == 0 || _debug_ ## category ## _level >= (level)) DebugPrint(#category, level, fmt::format(FMT_STRING(format_string), ## __VA_ARGS__))
 
void DebugPrint(const char *category, int level, const std::string &message);
 

	
 
extern int _debug_driver_level;
 
extern int _debug_grf_level;
 
@@ -99,7 +99,7 @@ struct TicToc {
 
void ShowInfoI(const std::string &str);
 
#define ShowInfo(format_string, ...) ShowInfoI(fmt::format(FMT_STRING(format_string), ## __VA_ARGS__))
 

	
 
std::string GetLogPrefix();
 
std::string GetLogPrefix(bool force = false);
 

	
 
void DebugSendRemoteMessages();
 
void DebugReconsiderSendRemoteMessages();