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)
#define BLIZZARD_ASSERT(x) \
if (!(x)) { \
return 0; \
}
(void)0
#else
#define BLIZZARD_ASSERT(x) \
if (!(x)) { \
Blizzard::Debug::Assert(#x, __FILE__, __LINE__); \
}
} \
(void)0
#endif
namespace Blizzard {