Cyclone Scheme  0.28.0

◆ unbox_number

#define unbox_number (   n)
Value:
((obj_is_int(n) ? obj_obj2int(n) : \
((type_of(n) == integer_tag) ? \
((integer_type *)n)->value : \
((double_type *)n)->value)))

Take Scheme object that is a number and return the number as a C type

integer_tag
@ integer_tag
Definition: types.h:61
obj_obj2int
#define obj_obj2int(x)
Definition: types.h:613
obj_is_int
#define obj_is_int(x)
Definition: types.h:607
integer_type
Deprecated - boxed integers.
Definition: types.h:808
type_of
#define type_of(obj)
Definition: types.h:92
double_type
Double-precision floating point type, also known as a flonum.
Definition: types.h:877