mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 17:49:29 +01:00
Merge pull request #17538 from hrydgard/debug-assert-off-in-release
Disable debug asserts and debug-level logging in Windows release builds
This commit is contained in:
1 file changed
+3
-2
+3
-2
@@ -83,6 +83,7 @@ void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type,
|
||||
;
|
||||
bool GenericLogEnabled(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type);
|
||||
|
||||
// Exception for Windows - enable more log levels in release mode than on other platforms.
|
||||
#if defined(_DEBUG) || defined(_WIN32)
|
||||
|
||||
#define MAX_LOGLEVEL DEBUG_LEVEL
|
||||
@@ -128,8 +129,8 @@ void SetExtraAssertInfo(const char *info);
|
||||
#define __FILENAME__ __FILE__
|
||||
#endif
|
||||
|
||||
// If we're in "debug" assert mode
|
||||
#if MAX_LOGLEVEL >= DEBUG_LEVEL
|
||||
// If we're a debug build, _dbg_assert_ is active. Not otherwise, even on Windows.
|
||||
#if defined(_DEBUG)
|
||||
|
||||
#define _dbg_assert_(_a_) \
|
||||
if (!(_a_)) {\
|
||||
|
||||
Reference in new issue
Block a user