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
2 changed files with 15 additions and 0 deletions
|
@ -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, ...) {
|
void debugN(int level, const char *s, ...) {
|
||||||
va_list va;
|
va_list va;
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ void setDebugOutputFormatter(OutputFormatter f);
|
||||||
|
|
||||||
inline void debug(const char *s, ...) {}
|
inline void debug(const char *s, ...) {}
|
||||||
inline void debug(int level, 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 debugN(int level, const char *s, ...) {}
|
||||||
inline void debugC(int level, uint32 engineChannel, const char *s, ...) {}
|
inline void debugC(int level, uint32 engineChannel, const char *s, ...) {}
|
||||||
inline void debugC(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);
|
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
|
* Print a debug message to the text console (stdout), but only if
|
||||||
* the gDebugLevel equals at least the specified level.
|
* the gDebugLevel equals at least the specified level.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue