Prefixing squirrel output with [SQUIRREL]
authorTobias Markus <tobbi@mozilla-uk.org>
Sat, 11 Oct 2014 22:08:50 +0000 (00:08 +0200)
committerTobias Markus <tobbi@mozilla-uk.org>
Sat, 11 Oct 2014 22:08:50 +0000 (00:08 +0200)
src/scripting/scripting.cpp

index 71645ab..1e27640 100644 (file)
@@ -48,7 +48,7 @@ void printfunc(HSQUIRRELVM, const char* fmt, ...)
   va_list arglist;
   va_start(arglist, fmt);
   vsnprintf(buf, sizeof(buf), fmt, arglist);
-  ConsoleBuffer::output << (const char*) buf << std::flush;
+  ConsoleBuffer::output << "[SQUIRREL] " << (const char*) buf << std::flush;
   va_end(arglist);
 }