mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-22 07:09:17 +02:00
Add check for obj type
This commit is contained in:
parent
7bd77e1ac3
commit
015b9b2a41
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ void gc_init_heap(long heap_size);
|
|||
#define Cyc_verify_mutable(data, obj) { \
|
||||
if (immutable(obj)) Cyc_immutable_obj_error(data, obj); }
|
||||
#define Cyc_verify_immutable(data, obj) { \
|
||||
if (!immutable(obj)) Cyc_mutable_obj_error(data, obj); }
|
||||
if (is_object_type(obj) && !immutable(obj)) Cyc_mutable_obj_error(data, obj); }
|
||||
#define Cyc_check_type(data, fnc_test, tag, obj) { \
|
||||
if ((boolean_f == fnc_test(obj))) Cyc_invalid_type_error(data, tag, obj); }
|
||||
#define Cyc_check_type2(data, fnc_test, tag, obj) { \
|
||||
|
|
Loading…
Add table
Reference in a new issue