diff options
author | Gavin Howard <gavin@yzena.com> | 2021-07-27 21:55:42 -0600 |
---|---|---|
committer | Gavin Howard <gavin@yzena.com> | 2021-07-27 21:55:42 -0600 |
commit | c2e9107d796b47cf47286df24beefa0450dbfaad (patch) | |
tree | 0bb8036eee38c1c010032856ff012489d5dbfdd9 /src | |
parent | a64921866868cdb6eaa652089e211ab57f4f9e22 (diff) | |
download | platform_external_bc-c2e9107d796b47cf47286df24beefa0450dbfaad.tar.gz platform_external_bc-c2e9107d796b47cf47286df24beefa0450dbfaad.tar.bz2 platform_external_bc-c2e9107d796b47cf47286df24beefa0450dbfaad.zip |
Make static_assert work
Signed-off-by: Gavin Howard <gavin@yzena.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/data.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -33,6 +33,8 @@ * */ +#include <assert.h> + #include <opt.h> #include <args.h> #include <lex.h> @@ -884,8 +886,8 @@ const size_t bc_lex_kws_len = sizeof(bc_lex_kws) / sizeof(BcLexKeyword); // redefined_kws in BcVm, is correct. If it's correct under C11, it will be // correct under C99, and I did not know any other way of ensuring they remained // synchronized. -_Static_assert(sizeof(bc_lex_kws) / sizeof(BcLexKeyword) == BC_LEX_NKWS, - "BC_LEX_NKWS is wrong."); +static_assert(sizeof(bc_lex_kws) / sizeof(BcLexKeyword) == BC_LEX_NKWS, + "BC_LEX_NKWS is wrong."); #endif // BC_C11 |