![]() |
#include <stddef.h>
#include <citrusleaf/alloc.h>
Go to the source code of this file.
Macros | |
#define | as_util_fromval(object, type_id, type) (object && as_val_type(object) == type_id ? (type *) object : NULL) |
#define | as_util_hook(hook, default, object, args...) (object && object->hooks && object->hooks->hook ? object->hooks->hook(object, ## args) : default) |
#define as_util_fromval | ( | object, | |
type_id, | |||
type | |||
) | (object && as_val_type(object) == type_id ? (type *) object : NULL) |
Converts from an as_val.
Definition at line 43 of file modules/common/src/include/aerospike/as_util.h.
#define as_util_hook | ( | hook, | |
default, | |||
object, | |||
args... | |||
) | (object && object->hooks && object->hooks->hook ? object->hooks->hook(object, ## args) : default) |
Calls a hook on a object. If hook not found, then return the default value.
Definition at line 37 of file modules/common/src/include/aerospike/as_util.h.