Sentry: Fix compile error in AssertNotReachable, release version

This commit is contained in:
Lion Kortlepel
2021-08-11 23:53:30 +02:00
committed by Lion
parent c4b72be50a
commit 0f9a994c10
2 changed files with 3 additions and 9 deletions

View File

@@ -66,11 +66,8 @@ inline void _assert([[maybe_unused]] const char* file, [[maybe_unused]] const ch
Sentry.LogAssert(#cond, _file_basename, _line, __func__); \
} \
} while (false)
#define AssertNotReachable() \
do { \
bool result = (cond); \
if (!result) { \
Sentry.LogAssert("code is unreachable", _file_basename, _line, __func__); \
} \
#define AssertNotReachable() \
do { \
Sentry.LogAssert("code is unreachable", _file_basename, _line, __func__); \
} while (false)
#endif // DEBUG