mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
COMMON: Add debugN variant without level parameter
This makes our various debug*() functions fully symmetric, for now. svn-id: r54008
This commit is contained in:
parent
a984fb17c2
commit
0cf64915e1
@ -190,6 +190,14 @@ void debug(int level, const char *s, ...) {
|
||||
|
||||
}
|
||||
|
||||
void debugN(const char *s, ...) {
|
||||
va_list va;
|
||||
|
||||
va_start(va, s);
|
||||
debugHelper(s, va, false);
|
||||
va_end(va);
|
||||
}
|
||||
|
||||
void debugN(int level, const char *s, ...) {
|
||||
va_list va;
|
||||
|
||||
|
@ -43,6 +43,7 @@ void setDebugOutputFormatter(OutputFormatter f);
|
||||
|
||||
inline void debug(const char *s, ...) {}
|
||||
inline void debug(int level, const char *s, ...) {}
|
||||
inline void debugN(const char *s, ...) {}
|
||||
inline void debugN(int level, const char *s, ...) {}
|
||||
inline void debugC(int level, uint32 engineChannel, const char *s, ...) {}
|
||||
inline void debugC(uint32 engineChannel, const char *s, ...) {}
|
||||
@ -67,6 +68,12 @@ void debug(const char *s, ...) GCC_PRINTF(1, 2);
|
||||
*/
|
||||
void debug(int level, const char *s, ...) GCC_PRINTF(2, 3);
|
||||
|
||||
/**
|
||||
* Print a debug message to the text console (stdout).
|
||||
* Does not append a newline.
|
||||
*/
|
||||
void debugN(const char *s, ...) GCC_PRINTF(1, 2);
|
||||
|
||||
/**
|
||||
* Print a debug message to the text console (stdout), but only if
|
||||
* the gDebugLevel equals at least the specified level.
|
||||
|
Loading…
Reference in New Issue
Block a user