Fix: Build error with NDEBUG after recent fix for log level macro

This commit is contained in:
Brecht Van Lommel
2025-07-10 21:10:36 +02:00
parent 035bc3e7ca
commit f38b4323f9

View File

@@ -148,7 +148,7 @@ template<typename T> T DCheckNotNull(T &&t, const char *expression)
# define DCHECK_LT(a, b) DCHECK_OP(<, a, b)
# define DCHECK_LE(a, b) DCHECK_OP(<=, a, b)
#else
# define LOG_SUPPRESS() LOG_IF(DEBUG, false)
# define LOG_SUPPRESS() LOG_IF(LOG_LEVEL_DEBUG, false)
# define DCHECK(expression) LOG_SUPPRESS()
# define DCHECK_NOTNULL(expression) (expression)
# define DCHECK_GE(a, b) LOG_SUPPRESS()