mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
LibC: Use C-style void cast in assert()
This commit is contained in:
parent
d34ef6d997
commit
552185066e
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg);
|
|||
# define assert(expr) \
|
||||
(__builtin_expect(!(expr), 0) \
|
||||
? __assertion_failed(#expr "\n" __FILE__ ":" __stringify(__LINE__)) \
|
||||
: void(0))
|
||||
: (void)0)
|
||||
|
||||
#else
|
||||
# define assert(expr) ((void)(0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue