Assert: Fix compiler error

This commit is contained in:
Lion Kortlepel 2021-09-17 15:06:13 +02:00
parent 11d4d9ff91
commit 82a5fc3999
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -59,7 +59,7 @@ inline void _assert([[maybe_unused]] const char* file, [[maybe_unused]] const ch
#define beammp_assert_not_reachable() _assert(__FILE__, __func__, __LINE__, "reached unreachable code", false)
#else
// In release build, these macros turn into NOPs. The compiler will optimize these out.
#define beammp_assert(x) \
#define beammp_assert(cond) \
do { \
bool result = (cond); \
if (!result) { \