mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 08:15:35 +00:00
Assert: Fix compiler error
This commit is contained in:
parent
11d4d9ff91
commit
82a5fc3999
@ -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)
|
#define beammp_assert_not_reachable() _assert(__FILE__, __func__, __LINE__, "reached unreachable code", false)
|
||||||
#else
|
#else
|
||||||
// In release build, these macros turn into NOPs. The compiler will optimize these out.
|
// In release build, these macros turn into NOPs. The compiler will optimize these out.
|
||||||
#define beammp_assert(x) \
|
#define beammp_assert(cond) \
|
||||||
do { \
|
do { \
|
||||||
bool result = (cond); \
|
bool result = (cond); \
|
||||||
if (!result) { \
|
if (!result) { \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user