62 fprintf(stderr,
"Runtime type error: DIV expects numbers, got %s and %s\n",
63 value_type_name(
a.type), value_type_name(
b.type));
Tagged union representing a Fun value.
void free_value(Value v)
Free dynamic storage owned by a Value.
Value make_float(double v)
Construct a Value representing a double-precision float.
Value make_int(int64_t v)
Construct a Value representing a 64-bit integer.
void vm_raise_error(VM *vm, const char *msg)
Raise a runtime error inside the VM, honoring try/catch/finally.