diff options
author | Sven Göthel <[email protected]> | 2024-05-07 10:43:41 +0200 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-05-07 10:43:41 +0200 |
commit | 774e471548332b304f59a07c20053163765f78ac (patch) | |
tree | fe02d5b624d7e460f4af4ca308a398a96bfc6f98 /include/jau | |
parent | 464d5b17b268104347e9c38cb4ef98d4b7064687 (diff) |
cpp_lang_util: Add inline constexpr const bool debug_enabled; test_math_mat4f_02_mul only issues 1M loops if debug_enabled
Diffstat (limited to 'include/jau')
-rw-r--r-- | include/jau/cpp_lang_util.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/jau/cpp_lang_util.hpp b/include/jau/cpp_lang_util.hpp index 5492bf6..dfe1904 100644 --- a/include/jau/cpp_lang_util.hpp +++ b/include/jau/cpp_lang_util.hpp @@ -778,6 +778,12 @@ namespace jau { #endif #endif + #if defined(NDEBUG) && !defined(DEBUG) + inline constexpr const bool debug_enabled = false; + #else + inline constexpr const bool debug_enabled = true; + #endif + /**@}*/ } // namespace jau |