mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-27 01:41:06 -04:00
make debug messages log to stdout on non-windows operating systems
This commit is contained in:
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user