Remove STATIC_ASSERT Macro and replace with standard _Static_assert

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Jason Chen CJ
2018-03-27 21:07:56 +08:00
committed by Jack Ren
parent 5a47c267e3
commit c7dd6a51b5
2 changed files with 51 additions and 37 deletions

View File

@@ -43,7 +43,4 @@ void __assert(uint32_t line, const char *file, char *txt);
#define ASSERT(x, ...) do { } while(0)
#endif
/* Force a compilation error if condition is false */
#define STATIC_ASSERT(condition) ((void)sizeof(char[(condition) ? 1 : -1]))
#endif /* ASSERT_H */