Core: Fix more warnings, add new function sLog.outStaticDebug() that replaces DEBUG_LOG
--HG-- branch : trunk
This commit is contained in:
1 parent
a40cb46e61
commit
670964803f
29 files changed
+171
-171
No files matched your search
@@ -734,6 +734,18 @@ void Log::outDebug(const char * str, ...)
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
void Log::outStaticDebug(const char * fmt, ...)
|
||||
{
|
||||
#ifdef TRINITY_DEBUG
|
||||
va_list ap;
|
||||
char str[2048];
|
||||
va_start(ap, str);
|
||||
vsnprintf(str, 2048, fmt, ap);
|
||||
va_end(ap);
|
||||
outDebug(str);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Log::outStringInLine(const char * str, ...)
|
||||
{
|
||||
if (!str)
|
||||
|
||||
Reference in new issue
Block a user