|
Reduct
v1.0.4-3-gdaf0d70
A functional and immutable language.
|
Garbage collection. More...
Go to the source code of this file.
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. | |
Garbage collection.
Definition in file gc.h.