mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
LibC: Unbreak assert.h when compiled with a C compiler :^)
This commit is contained in:
parent
6d4fd02b92
commit
79818bbf8e
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg);
|
|||
} while (0)
|
||||
# define ASSERT_NOT_REACHED() assert(false)
|
||||
#else
|
||||
# define assert(expr) (void(0))
|
||||
# define assert(expr) ((void)(0))
|
||||
# define ASSERT_NOT_REACHED() CRASH()
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue