mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibC: Define static_assert in assert.h when it's being used in C
This commit is contained in:
parent
8cc279ed74
commit
35829304d6
1 changed files with 4 additions and 0 deletions
|
@ -52,4 +52,8 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg);
|
|||
#define VERIFY assert
|
||||
#define TODO VERIFY_NOT_REACHED
|
||||
|
||||
#ifndef __cplusplus
|
||||
# define static_assert _Static_assert
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue