debug: add assertions_enabled variable

This commit is contained in:
Danny Robson 2018-04-05 12:13:37 +10:00
parent de247c7e7b
commit cd06fdcd67

View File

@ -32,8 +32,10 @@
// (more) macros. // (more) macros.
#if !defined(NDEBUG) #if !defined(NDEBUG)
constexpr bool debug_enabled = true; constexpr bool debug_enabled = true;
constexpr bool assertions_enabled = true;
#else #else
constexpr bool debug_enabled = false; constexpr bool debug_enabled = false;
constexpr bool assertions_enabled = false;
#endif #endif