Add macro for static_assert (#106)

This commit is contained in:
dosisod 2021-03-05 20:32:25 -08:00 committed by GitHub
parent 3364fc5b03
commit 6fa049c9c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,8 @@ void __assert_fail(const char *, const char *, int) hidden wontreturn relegated;
} \ } \
} while (0) } while (0)
#define static_assert _Static_assert
COSMOPOLITAN_C_END_ COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_ASSERT_H_ */ #endif /* COSMOPOLITAN_LIBC_ASSERT_H_ */