mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user