void check_object(caStack* stack) { CustomObject* object = (CustomObject*) circa_object_input(stack, 0); test_assert(object->initialized); test_assert(!object->checked); test_assert(!object->destroyed); object->checked = true; }
void Mutable__set(caStack* stack) { caValue* val = (caValue*) circa_object_input(stack, 0); copy(circa_input(stack, 1), val); }
void Mutable__get(caStack* stack) { caValue* val = (caValue*) circa_object_input(stack, 0); copy(val, circa_output(stack, 0)); }