Cyclone Scheme  0.28.0

◆ 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