LibC: Unbreak assert.h when compiled with a C compiler :^)

This commit is contained in:
Andreas Kling 2020-12-23 21:23:41 +01:00
commit 79818bbf8e
Notes: sideshowbarker 2024-07-19 00:37:47 +09:00

View file

@ -41,7 +41,7 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg);
} while (0) } while (0)
# define ASSERT_NOT_REACHED() assert(false) # define ASSERT_NOT_REACHED() assert(false)
#else #else
# define assert(expr) (void(0)) # define assert(expr) ((void)(0))
# define ASSERT_NOT_REACHED() CRASH() # define ASSERT_NOT_REACHED() CRASH()
#endif #endif