mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Core: Fix more warnings, add new function sLog.outStaticDebug() that replaces DEBUG_LOG
--HG-- branch : trunk
This commit is contained in:
@@ -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