This commit is contained in:
cozis
2021-11-02 13:24:52 +00:00
parent 87e9f4775b
commit 273adc90eb
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -1,4 +1,9 @@
fun x(a, b, c)
print(a, b, c);
print(x(1, 2, 3));
fun hello() fun hello()
print('hel\nlo', 2); print('hel\nlo', 2);
+2 -1
View File
@@ -324,7 +324,8 @@ static _Bool emit_instr_for_node(ExeBuilder *exeb, Node *node, Error *error)
if(!ExeBuilder_Append(exeb, error, OPCODE_POP, &op, 1, arg->base.offset, arg->base.length)) if(!ExeBuilder_Append(exeb, error, OPCODE_POP, &op, 1, arg->base.offset, arg->base.length))
return 0; return 0;
assert(arg->base.next->kind == NODE_ARG); if(arg->base.next)
assert(arg->base.next->kind == NODE_ARG);
arg = (ArgumentNode*) arg->base.next; arg = (ArgumentNode*) arg->base.next;
} }