aboutsummaryrefslogtreecommitdiffstats
path: root/include/jau
diff options
context:
space:
mode:
Diffstat (limited to 'include/jau')
-rw-r--r--include/jau/cpp_lang_util.hpp6
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