diff options
Diffstat (limited to 'includes/Cmm.h')
-rw-r--r-- | includes/Cmm.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/includes/Cmm.h b/includes/Cmm.h index b1b8680e99..9b17e9f400 100644 --- a/includes/Cmm.h +++ b/includes/Cmm.h @@ -211,7 +211,13 @@ Assertions and Debuggery -------------------------------------------------------------------------- */ -#if defined(DEBUG) +#if defined(DEBUG) || defined(USE_ASSERTS_ALL_WAYS) +#define ASSERTS_ENABLED 1 +#else +#undef ASSERTS_ENABLED +#endif + +#if ASSERTS_ENABLED #define ASSERT(predicate) \ if (predicate) { \ /*null*/; \ |