1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

LibC: Remove VERIFY_NOT_REACHED() from assert.h

Both `AK/Assertions.h` and `assert.h` would define the macro if `NDEBUG`
is set.

Remove the definition from `assert.h` since it is not an ISO-C
requirement.
This commit is contained in:
Michel Hermier 2021-12-16 17:56:25 +01:00 committed by Brian Gianforcaro
parent ee42acddf8
commit 2c62d51e25

View file

@ -21,7 +21,6 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg);
#else
# define assert(expr) ((void)(0))
# define VERIFY_NOT_REACHED() _abort()
#endif
__attribute__((noreturn)) void _abort();