1#ifndef REDUCT_CLOSURE_H
2#define REDUCT_CLOSURE_H 1
19#define REDUCT_CLOSURE_SMALL_MAX 5
25typedef struct reduct_closure
REDUCT_API reduct_closure_t * reduct_closure_new(struct reduct *reduct, reduct_function_t *function)
Allocate a new closure.
#define REDUCT_CLOSURE_SMALL_MAX
The maximum number of small constants.
REDUCT_API void reduct_closure_release(struct reduct *reduct, reduct_closure_t *closure)
Release a closure, potentially allowing the garbage collector to collect it.
REDUCT_API void reduct_closure_retain(struct reduct *reduct, reduct_closure_t *closure)
Retain a closure, preventing it from being collected by the garbage collector.
reduct_handle_t * constants
The array of constant slots forming the constant template.
reduct_function_t * function
Pointer to the prototype function item.
Compiled function structure.