35 fprintf(stderr,
"Runtime error: invalid element count for MAKE_ARRAY\n");
41 fprintf(stderr,
"Runtime error: OOM in MAKE_ARRAY\n");
44 for (
int i =
n - 1; i >= 0; --i) {
49 for (
int i = 0; i <
n; ++i) {
Tagged union representing a Fun value.
void free_value(Value v)
Free dynamic storage owned by a Value.
Value make_array_from_values(const Value *vals, int count)
Create an array Value by copying items from an input span.
static Value pop_value(VM *vm)
Pop a Value from the VM operand stack.