From ad21d646d02f1a416b6765578641e5c5727442ec Mon Sep 17 00:00:00 2001 From: EndrII Date: Fri, 21 Aug 2020 16:03:32 +0300 Subject: [PATCH] added debug_assert function --- global.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/global.h b/global.h index d1f7a1e..3d97970 100644 --- a/global.h +++ b/global.h @@ -110,4 +110,11 @@ uint8_t static_type_hash_8() noexcept { #define H_16 static_type_hash_16 #define H_32 static_type_hash_32 + +#ifdef RELEASE_BUILD + #define debug_assert(condition) +#else + #define debug_assert(condition) assert(condition) +#endif + #endif // GLOBAL_H