22 #ifndef COMMON_DEBUG_H 23 #define COMMON_DEBUG_H 25 #include "common/scummsys.h" 27 #ifdef DISABLE_TEXT_CONSOLE 29 inline void debug(
const char *s, ...) {}
30 inline void debug(
int level,
const char *s, ...) {}
31 inline void debugN(
const char *s, ...) {}
32 inline void debugN(
int level,
const char *s, ...) {}
33 inline void debugC(
int level, uint32 debugChannel,
const char *s, ...) {}
34 inline void debugC(uint32 debugChannel,
const char *s, ...) {}
35 inline void debugCN(
int level, uint32 debugChannel,
const char *s, ...) {}
36 inline void debugCN(uint32 debugChannel,
const char *s, ...) {}
66 void debugN(MSVC_PRINTF const
char *s, ...) GCC_PRINTF(1, 2);
74 void debugN(
int level, MSVC_PRINTF const
char *s, ...) GCC_PRINTF(2, 3);
88 void debugC(
int level, uint32 debugChannel, MSVC_PRINTF const
char *s, ...) GCC_PRINTF(3, 4);
103 void debugCN(
int level, uint32 debugChannel, MSVC_PRINTF const
char *s, ...) GCC_PRINTF(3, 4);
114 void debugC(uint32 debugChannel, MSVC_PRINTF const
char *s, ...) GCC_PRINTF(2, 3);
125 void debugCN(uint32 debugChannel, MSVC_PRINTF const
char *s, ...) GCC_PRINTF(2, 3);
162 kDebugGlobalDetection = 100000,
166 kDebugLevelGGraphics,
bool debugChannelSet(int level, uint32 debugChannel)
void void void debugN(MSVC_PRINTF const char *s,...) GCC_PRINTF(1
void void void void void void debugCN(int level, uint32 debugChannel, MSVC_PRINTF const char *s,...) GCC_PRINTF(3
void void void void void debugC(int level, uint32 debugChannel, MSVC_PRINTF const char *s,...) GCC_PRINTF(3
int FORCEINLINE GCC_PRINTF(2, 0) int vsprintf_s(T(&dst)[N]
void debug(MSVC_PRINTF const char *s,...) GCC_PRINTF(1
void void void void void void void void bool debugLevelSet(int level)
GlobalDebugLevels
Definition: debug.h:161