mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-13 01:40:36 +00:00
LibC: Unbreak assert.h when compiled with a C compiler :^)
This commit is contained in:
parent
6d4fd02b92
commit
79818bbf8e
Notes:
sideshowbarker
2024-07-19 00:37:47 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/79818bbf8ee
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…
Reference in a new issue