Reduct  v1.0.4-3-gdaf0d70
A functional and immutable language.
Loading...
Searching...
No Matches
gc.h File Reference

Garbage collection. More...

#include "core.h"
#include "handle.h"
#include "item.h"
Include dependency graph for gc.h:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Garbage collection.

Definition in file gc.h.