[Scummvm-cvs-logs] SF.net SVN: scummvm:[54008] scummvm/trunk/common
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Mon Nov 1 17:03:50 CET 2010
Revision: 54008
http://scummvm.svn.sourceforge.net/scummvm/?rev=54008&view=rev
Author: fingolfin
Date: 2010-11-01 16:03:50 +0000 (Mon, 01 Nov 2010)
Log Message:
-----------
COMMON: Add debugN variant without level parameter
This makes our various debug*() functions fully symmetric, for now.
Modified Paths:
--------------
scummvm/trunk/common/debug.cpp
scummvm/trunk/common/debug.h
Modified: scummvm/trunk/common/debug.cpp
===================================================================
--- scummvm/trunk/common/debug.cpp 2010-11-01 16:03:35 UTC (rev 54007)
+++ scummvm/trunk/common/debug.cpp 2010-11-01 16:03:50 UTC (rev 54008)
@@ -190,6 +190,14 @@
}
+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;
Modified: scummvm/trunk/common/debug.h
===================================================================
--- scummvm/trunk/common/debug.h 2010-11-01 16:03:35 UTC (rev 54007)
+++ scummvm/trunk/common/debug.h 2010-11-01 16:03:50 UTC (rev 54008)
@@ -43,6 +43,7 @@
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(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.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list