1#ifndef REDUCT_NATIVE_IMPL_H
2#define REDUCT_NATIVE_IMPL_H 1
Atom representation and operations.
Core definitions and structures.
#define REDUCT_CONTAINER_OF(_ptr, _type, _member)
Container of macro.
#define REDUCT_ASSERT(_cond)
REDUCT_API reduct_atom_t * reduct_atom_lookup(struct reduct *reduct, const char *str, reduct_size_t len, reduct_atom_lookup_flags_t flags)
Lookup an atom in the Reduct structure.
@ REDUCT_ATOM_LOOKUP_NONE
No flags.
#define REDUCT_GC_RETAIN_ITEM(_reduct, _item)
Retain a item, preventing it from being collected by the GC.
#define REDUCT_ITEM_FLAG_NATIVE
Item is an atom and a native function.
Native function registration.
REDUCT_API void reduct_native_register(reduct_t *reduct, reduct_native_t *array, reduct_size_t count)
reduct_native_fn native
Native function, item must have REDUCT_ITEM_FLAG_NATIVE.
reduct_item_flags_t flags
Flags for the item.
Native function definition structure.