22 fprintf(stderr,
"Runtime type error: FMAX expects numbers, got %s and %s\n",
30 if (!isnan(
r) && !isinf(
r) &&
r >= (
double)INT64_MIN &&
r <= (
double)INT64_MAX) {
31 int64_t ii = (int64_t)
r;
Tagged union representing a Fun 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.
static Value pop_value(VM *vm)
Pop a Value from the VM operand stack.
static const char * value_type_name(ValueType t)
Get a human-readable name for a ValueType.