diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-30 23:45:52 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-30 23:45:52 +0100 |
commit | 61ff477d139e8a93b635993cd8b8725a2957ce1b (patch) | |
tree | 5ff35389d6511209648c8d6123e5f23cc5c35485 /com.c | |
parent | 567f2ebc2d467b5fc6fdff36c1c7c276fb80adf1 (diff) |
add doc.txt
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 |