Parcourir la source

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.
Michel Hermier il y a 3 ans
Parent
commit
2c62d51e25
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      Userland/Libraries/LibC/assert.h

+ 0 - 1
Userland/Libraries/LibC/assert.h

@@ -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();