summaryrefslogtreecommitdiff
path: root/com.c
diff options
context:
space:
mode:
Diffstat (limited to 'com.c')
-rw-r--r--com.c7
1 files changed, 1 insertions, 6 deletions
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