From 6fa049c9c75b1eccf6bac3aacaa8fe88f68b504a Mon Sep 17 00:00:00 2001 From: dosisod <39638017+dosisod@users.noreply.github.com> Date: Fri, 5 Mar 2021 20:32:25 -0800 Subject: [PATCH] Add macro for static_assert (#106) --- libc/assert.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/assert.h b/libc/assert.h index 74f1ea59a..0bdbd60d5 100644 --- a/libc/assert.h +++ b/libc/assert.h @@ -19,6 +19,8 @@ void __assert_fail(const char *, const char *, int) hidden wontreturn relegated; } \ } while (0) +#define static_assert _Static_assert + COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_ASSERT_H_ */