Loading...
Searching...
No Matches
Go to the documentation of this file.
34#define as_util_hook(hook,default,object,...) \
35 (object && object->hooks && object->hooks->hook ? object->hooks->hook(object, ##__VA_ARGS__) : default)
37#define as_util_hook_ret_void(hook,object,...) \
38 if (object && object->hooks && object->hooks->hook) object->hooks->hook(object, ##__VA_ARGS__)
43#define as_util_fromval(object,type_id,type) \
44 (object && as_val_type(object) == type_id ? (type *) object : NULL)