obs: Make debug break on error optional via preprocessor definition

上级 4c0b3161
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册