Don't call OutputDebugStringW in Release builds

This commit is contained in:
Chris Robinson 2021-10-03 23:49:06 -07:00
parent f92cc479d8
commit 1a0287e2a0

View File

@ -41,7 +41,13 @@ void al_print(LogLevel level, FILE *logfile, const char *fmt, ...)
fputws(wstr.c_str(), logfile);
fflush(logfile);
}
/* OutputDebugStringW has no 'level' property to distinguish between
* informational, warning, or error debug messages. So only print them for
* non-Release builds.
*/
#ifdef NDEBUG
OutputDebugStringW(wstr.c_str());
#endif
}
#else