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