diff options
Diffstat (limited to 'com.c')
-rw-r--r-- | com.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -499,10 +499,7 @@ static void compile_node(Compiler *C, AstNode a, int flags) { } else { // function call // (f a b c ) - if (l.len > 255) { - fprintf(stderr, "can't have more than 255 args in a function call\n"); - exit(1); - } + CHECK(l.len < 256, "max 255 args in a function call"); for (int i = 0; i < l.len; i++) { compile_node(C, l.vals[i], 0); } @@ -588,5 +585,3 @@ int main(int argc, char **argv) { return runvm(S); } -#undef CHECK -#undef ER |