xcc: we do not support build asserts
Cover toolchains that do not have build asserts. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
37cd0abd1d
commit
bfe4dde2a4
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@
|
|||
(__STDC_VERSION__) >= 201100
|
||||
#define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
|
||||
#define BUILD_ASSERT_MSG(EXPR, MSG) __DEPRECATED_MACRO BUILD_ASSERT(EXPR, MSG)
|
||||
#else
|
||||
#define BUILD_ASSERT(EXPR, MSG...)
|
||||
#define BUILD_ASSERT_MSG(EXPR, MSG)
|
||||
#endif
|
||||
|
||||
#include <toolchain/common.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue