diff --git a/libc/include/assert.h.def b/libc/include/assert.h.def index 9c924c7f5854..d5ae14a1cd81 100644 --- a/libc/include/assert.h.def +++ b/libc/include/assert.h.def @@ -12,22 +12,19 @@ // This file may be usefully included multiple times to change assert()'s // definition based on NDEBUG. - -#undef assert -#ifdef NDEBUG -#define assert(e) (void)0 -#else - #ifndef __cplusplus #undef static_assert #define static_assert _Static_assert #endif +#undef assert +#ifdef NDEBUG +#define assert(e) (void)0 +#else #ifdef __cplusplus extern "C" #endif _Noreturn void __assert_fail(const char *, const char *, unsigned, const char *) __NOEXCEPT; - #define assert(e) \ ((e) ? (void)0 : __assert_fail(#e, __FILE__, __LINE__, __PRETTY_FUNCTION__)) #endif