Commit 40957790 authored by Manuel Mohr's avatar Manuel Mohr
Browse files

Add compile-time assert trying to enforce complete builtin list.

Let's hope noone inserts new builtin kinds in the middle.
parent bf5311be
......@@ -127,6 +127,8 @@ parse_error(read_env_t *env, const char *fmt, ...)
va_end(ap);
}
COMPILETIME_ASSERT(ir_bk_va_arg == ir_bk_last, complete_builtin_list);
/** Initializes the symbol table. May be called more than once without problems. */
static void symtbl_init(void)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment