make debug messages log to stdout on non-windows operating systems

This commit is contained in:
jp9000
2013-12-23 01:06:53 -07:00
parent 5f6cf61449
commit 221ed7d92b
+3 -1
View File
@@ -39,15 +39,17 @@ OBSAppBase::~OBSAppBase()
static void do_log(enum log_type type, const char *msg, va_list args)
{
#ifdef _WIN32
char bla[4096];
vsnprintf(bla, 4095, msg, args);
#ifdef _WIN32
OutputDebugStringA(bla);
OutputDebugStringA("\n");
if (type >= LOG_WARNING)
__debugbreak();
#else
vprintf(msg, args);
#endif
}