mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +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
Notes:
sideshowbarker
2024-07-18 21:38:10 +09:00
Author: https://github.com/RealKC
Commit: 35829304d6
Pull-request: https://github.com/SerenityOS/serenity/pull/5680
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 VERIFY assert
|
||||||
#define TODO VERIFY_NOT_REACHED
|
#define TODO VERIFY_NOT_REACHED
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
|
# define static_assert _Static_assert
|
||||||
|
#endif
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue