mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 14:02:20 +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: 79818bbf8e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue