mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Enable ASSERT in debug builds only
NDEBUG is defined in release builds. So we want to enable the ASSERT macro when it *isn't* defined.
This commit is contained in:
parent
3ddacaa705
commit
f29c3684a6
Notes:
sideshowbarker
2024-07-18 02:44:43 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/f29c3684a67 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/679 Reviewed-by: https://github.com/BertalanD ✅
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ static constexpr bool TODO = false;
|
|||
#define TODO_PPC64() VERIFY(TODO) /* NOLINT(cert-dcl03-c,misc-static-assert) No, this can't be static_assert, it's a runtime check */
|
||||
#define TODO_PPC() VERIFY(TODO) /* NOLINT(cert-dcl03-c,misc-static-assert) No, this can't be static_assert, it's a runtime check */
|
||||
|
||||
#ifdef NDEBUG
|
||||
#ifndef NDEBUG
|
||||
extern "C" __attribute__((noreturn)) void ak_assertion_failed(char const*);
|
||||
# define ASSERT(expr) \
|
||||
(__builtin_expect(!(expr), 0) \
|
||||
|
|
Loading…
Reference in a new issue