38 fprintf(stderr,
"Runtime type error: ARR_SET expects (array, int, value)\n");
42 fprintf(stderr,
"Runtime error: set index out of range\n");
push_value(vm, copy_value(&v))
Tagged union representing a Fun value.
int array_set(Value *v, int index, Value newElem)
Replace an element of an array with a new Value.
Value copy_value(const Value *v)
Shallow copy a Value.
static Value pop_value(VM *vm)
Pop a Value from the VM operand stack.