From 61ff477d139e8a93b635993cd8b8725a2957ce1b Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 30 Jun 2024 23:45:52 +0100 Subject: add doc.txt --- com.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'com.c') diff --git a/com.c b/com.c index 4b65ca3..310117a 100644 --- a/com.c +++ b/com.c @@ -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 -- cgit v1.2.3