aboutsummaryrefslogtreecommitdiff
path: root/common/debug.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2009-06-10 10:11:24 +0000
committerEugene Sandulenko2009-06-10 10:11:24 +0000
commitff72f8531cea80be7606e338dbdbd6413b298661 (patch)
treefe39f3a307fa154d5b77b331bdd4d956b605ddba /common/debug.cpp
parentea0a2bcbbdc0406eec97e161572c69da4e80f61a (diff)
downloadscummvm-rg350-ff72f8531cea80be7606e338dbdbd6413b298661.tar.gz
scummvm-rg350-ff72f8531cea80be7606e338dbdbd6413b298661.tar.bz2
scummvm-rg350-ff72f8531cea80be7606e338dbdbd6413b298661.zip
Added debugCN() call which does not add newline automatically
svn-id: r41421
Diffstat (limited to 'common/debug.cpp')
-rw-r--r--common/debug.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/common/debug.cpp b/common/debug.cpp
index cc358596f7..ff17959cbf 100644
--- a/common/debug.cpp
+++ b/common/debug.cpp
@@ -227,6 +227,19 @@ void debugC(int level, uint32 debugChannels, const char *s, ...) {
va_end(va);
}
+void debugCN(int level, uint32 debugChannels, const char *s, ...) {
+ va_list va;
+
+ // Debug level 11 turns on all special debug level messages
+ if (gDebugLevel != 11)
+ if (level > gDebugLevel || !(Common::gDebugLevelsEnabled & debugChannels))
+ return;
+
+ va_start(va, s);
+ debugHelper(s, va, false);
+ va_end(va);
+}
+
void debugC(uint32 debugChannels, const char *s, ...) {
va_list va;
@@ -240,4 +253,17 @@ void debugC(uint32 debugChannels, const char *s, ...) {
va_end(va);
}
+void debugCN(uint32 debugChannels, const char *s, ...) {
+ va_list va;
+
+ // Debug level 11 turns on all special debug level messages
+ if (gDebugLevel != 11)
+ if (!(Common::gDebugLevelsEnabled & debugChannels))
+ return;
+
+ va_start(va, s);
+ debugHelper(s, va, false);
+ va_end(va);
+}
+
#endif