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