Cyclone Scheme
0.28.0
Error checking
Cyc_check_argc
Cyc_check_atomic
Cyc_check_bounds
Cyc_check_bvec
Cyc_check_cond_var
Cyc_check_double
Cyc_check_fixnum
Cyc_check_int
Cyc_check_mutex
Cyc_check_num
Cyc_check_num_args
Cyc_check_obj
Cyc_check_opaque
Cyc_check_pair
Cyc_check_pair_or_null
Cyc_check_port
Cyc_check_proc
Cyc_check_str
Cyc_check_sym
Cyc_check_type
Cyc_check_type2
Cyc_check_vec
Cyc_immutable_obj_error
Cyc_invalid_type_error
Cyc_mutable_obj_error
Cyc_verify_immutable
Cyc_verify_mutable
◆
Cyc_check_type
#define Cyc_check_type
(
data,
fnc_test,
tag,
obj
)
Value:
{ \
if ((
boolean_f
== fnc_test(obj)))
Cyc_invalid_type_error
(data, tag, obj); }
Perform type checking and raise an error if the check fails.
Parameters
data
- Thread data object
fnc_test
- Predicate to do type checking
tag
- Object tag we are checking for
obj
- Object to check
Cyc_invalid_type_error
void Cyc_invalid_type_error(void *data, int tag, object found)
Definition:
runtime.c:57
boolean_f
const object boolean_f
Definition:
runtime.c:397
Generated by
1.8.17