pub unsafe extern "C" fn register_primop(
context: *mut c_context,
primOp: *mut PrimOp,
) -> errExpand description
@brief add a primop to the builtins attribute set
@ingroup primops
Only applies to States created after this call.
Moves your PrimOp content into the global evaluator registry, meaning your input PrimOp pointer becomes invalid. The PrimOp must not be used with nix_init_primop() before or after this call, as this would cause undefined behavior. You must call nix_gc_decref() on the original PrimOp pointer after this call to release your reference.
@param[out] context Optional, stores error information @param[in] primOp PrimOp to register @return error code, NIX_OK on success