mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-02 07:45:26 +00:00
CustomAssert: fix macro in release being borked
This commit is contained in:
parent
9f52ab2e54
commit
981b56b846
@ -63,14 +63,14 @@ inline void _assert([[maybe_unused]] const char* file, [[maybe_unused]] const ch
|
|||||||
do { \
|
do { \
|
||||||
if (!result) { \
|
if (!result) { \
|
||||||
Sentry.LogAssert(#cond, _file_basename, _line, __func__); \
|
Sentry.LogAssert(#cond, _file_basename, _line, __func__); \
|
||||||
}
|
} \
|
||||||
}
|
} while (false)
|
||||||
while (false)
|
|
||||||
#define AssertNotReachable() \
|
#define AssertNotReachable() \
|
||||||
do { \
|
do { \
|
||||||
if (!result) { \
|
if (!result) { \
|
||||||
Sentry.LogAssert("code is unreachable", _file_basename, _line, __func__); \
|
Sentry.LogAssert("code is unreachable", _file_basename, _line, __func__); \
|
||||||
}
|
} \
|
||||||
|
} while (false)
|
||||||
}
|
}
|
||||||
while (false)
|
while (false)
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user