mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-27 16:29:04 -04:00
obs: Make debug break on error optional via preprocessor definition
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -313,7 +313,7 @@ static void do_log(int log_level, const char *msg, va_list args, void *param)
|
||||
if (log_level <= LOG_INFO)
|
||||
LogStringChunk(logFile, str);
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32) && defined(OBS_DEBUGBREAK_ON_ERROR)
|
||||
if (log_level <= LOG_ERROR && IsDebuggerPresent())
|
||||
__debugbreak();
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user