Cyclone Scheme
0.28.0
|
◆ return_inexact_double_or_cplx_op
Value:
make_double(d, 0.0); \
Cyc_check_num(data, z); \
if (obj_is_int(z)) { \
d.value = OP(obj_obj2int(z)); \
d.value = OP(((integer_type *)z)->value); \
d.value = OP(mp_get_double(&bignum_value(z))); \
complex_num_type cn; \
double complex unboxed = CPLX_OP(complex_num_value(z)); \
assign_complex_num((&cn), unboxed); \
return_closcall1(data, cont, &cn); \
} else { \
d.value = OP(((double_type *)z)->value); \
} \
return_closcall1(data, cont, &d)
Extract double or complex number and pass it in a call to continuation |