38 fprintf(stderr,
"Runtime type error: ARR_INSERT expects (array, int, value)\n");
43 fprintf(stderr,
"Runtime error: insert failed (OOM?)\n");
push_value(vm, make_int(n))
Tagged union representing a Fun value.
int array_insert(Value *v, int index, Value newElem)
Insert a new element at a specific position in an array.
Value make_int(int64_t v)
Construct a Value representing a 64-bit integer.
static Value pop_value(VM *vm)
Pop a Value from the VM operand stack.