aboutsummaryrefslogtreecommitdiff
path: root/common/debug.h
diff options
context:
space:
mode:
authorMax Horn2010-11-01 16:03:50 +0000
committerMax Horn2010-11-01 16:03:50 +0000
commit0cf64915e11b57f96c6e72518aee13891cf2b76f (patch)
treeaa0dbeefc1af713a4e0d07a0977302a87facfff0 /common/debug.h
parenta984fb17c2be039502eff55472dd6a252e5570df (diff)
downloadscummvm-rg350-0cf64915e11b57f96c6e72518aee13891cf2b76f.tar.gz
scummvm-rg350-0cf64915e11b57f96c6e72518aee13891cf2b76f.tar.bz2
scummvm-rg350-0cf64915e11b57f96c6e72518aee13891cf2b76f.zip
COMMON: Add debugN variant without level parameter
This makes our various debug*() functions fully symmetric, for now. svn-id: r54008
Diffstat (limited to 'common/debug.h')
-rw-r--r--common/debug.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/debug.h b/common/debug.h
index 2068a1314a..06f897f103 100644
--- a/common/debug.h
+++ b/common/debug.h
@@ -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, ...) {}
@@ -68,6 +69,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.
* As a rule of thumb, the more important the message, the lower the level.