Browse Source

obs: Make debug break on error optional via preprocessor definition

Richard Stanway 9 years ago
parent
commit
e6c465de84
1 changed files with 1 additions and 1 deletions
  1. 1 1
      obs/obs-app.cpp

+ 1 - 1
obs/obs-app.cpp

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