|
Reduct
v1.0.4-3-gdaf0d70
A functional and immutable language.
|
Macros | |
| #define | REDUCT_GC_RETAIN(_reduct, _handle) |
| Retain an item, preventing it from being collected by the GC. | |
| #define | REDUCT_GC_RETAIN_ITEM(_reduct, _item) |
| Retain a item, preventing it from being collected by the GC. | |
| #define | REDUCT_GC_RELEASE(_reduct, _handle) |
| Release a previously retained item, allowing it to be collected by the GC. | |
Functions | |
| REDUCT_API void | reduct_gc (reduct_t *reduct) |
| Run the garbage collector. | |
| REDUCT_API void | reduct_gc_if_needed (reduct_t *reduct) |
| Optionally run the garbage collector if the number of allocated blocks exceeds the threshold. | |
| #define REDUCT_GC_RETAIN | ( | _reduct, | |
| _handle | |||
| ) |
Retain an item, preventing it from being collected by the GC.
| reduct | The Reduct structure. |
| item | The item to retain, must be a item. |
| #define REDUCT_GC_RETAIN_ITEM | ( | _reduct, | |
| _item | |||
| ) |
Retain a item, preventing it from being collected by the GC.
| reduct | The Reduct structure. |
| item | The item to retain. |
| #define REDUCT_GC_RELEASE | ( | _reduct, | |
| _handle | |||
| ) |
Release a previously retained item, allowing it to be collected by the GC.
| reduct | The Reduct structure. |
| item | The item to release. |
| REDUCT_API void reduct_gc | ( | reduct_t * | reduct | ) |
| REDUCT_API void reduct_gc_if_needed | ( | reduct_t * | reduct | ) |