obs: Make debug break on error optional via preprocessor definition

This commit is contained in:
Richard Stanway 2016-04-20 02:56:10 +02:00
parent 4c0b316130
commit e6c465de84
No known key found for this signature in database
GPG key ID: AAC1E5265D71B3FD

View file

@ -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