A closure is a function instance that has captured variables from its enclosing scope.
◆ REDUCT_CLOSURE_SMALL_MAX
| #define REDUCT_CLOSURE_SMALL_MAX 4 |
The maximum number of small constants.
Definition at line 19 of file closure.h.
◆ reduct_closure_deinit()
Deinitialize a closure structure.
- Parameters
-
| closure | The closure to deinitialize. |
Definition at line 8 of file closure_impl.h.
◆ reduct_closure_new()
Allocate a new closure.
- Parameters
-
| reduct | The Reduct structure. |
| function | The prototype function item. |
- Returns
- A pointer to the newly allocated closure.
Definition at line 17 of file closure_impl.h.