Go to the documentation of this file.
22 #include <citrusleaf/alloc.h>
32 #define as_util_hook(hook,default,object,args...) \
33 (object && object->hooks && object->hooks->hook ? object->hooks->hook(object, ## args) : default)
38 #define as_util_fromval(object,type_id,type) \
39 (object && as_val_type(object) == type_id ? (type *) object : NULL)