As per C11, add static_assert() to <assert.h>.
This commit is contained in:
parent
b1214a51cc
commit
c6d3530d85
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228902
@ -57,7 +57,13 @@
|
|||||||
|
|
||||||
#ifndef _ASSERT_H_
|
#ifndef _ASSERT_H_
|
||||||
#define _ASSERT_H_
|
#define _ASSERT_H_
|
||||||
|
|
||||||
|
#if __ISO_C_VISIBLE >= 2011 && (!defined(__cplusplus) || __cplusplus < 201103L)
|
||||||
|
#define static_assert _Static_assert
|
||||||
|
#endif
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
void __assert(const char *, const char *, int, const char *) __dead2;
|
void __assert(const char *, const char *, int, const char *) __dead2;
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* !_ASSERT_H_ */
|
#endif /* !_ASSERT_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user