fix(debug): clean up assert macros

This commit is contained in:
fallenoak 2023-03-03 17:30:24 -06:00
parent e8d3709d31
commit 0242759cbe
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D

View file

@ -6,14 +6,13 @@
#if defined(NDEBUG) #if defined(NDEBUG)
#define BLIZZARD_ASSERT(x) \ #define BLIZZARD_ASSERT(x) \
if (!(x)) { \ (void)0
return 0; \
}
#else #else
#define BLIZZARD_ASSERT(x) \ #define BLIZZARD_ASSERT(x) \
if (!(x)) { \ if (!(x)) { \
Blizzard::Debug::Assert(#x, __FILE__, __LINE__); \ Blizzard::Debug::Assert(#x, __FILE__, __LINE__); \
} } \
(void)0
#endif #endif
namespace Blizzard { namespace Blizzard {