added debug_assert function

This commit is contained in:
Andrei Yankovich 2020-08-21 16:03:32 +03:00
parent bdb77471ac
commit ad21d646d0

View File

@ -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