Download
9 lines 266 BCModified 2022-05-19 raw
123456789
// Wrapper around the Boehm Garbage Collector
#include <bhash.h>

void gc_init(void);
void *gc_alloc(size_t size);
void *gc_alloc_atomic(size_t size);
void *gc_realloc(void *ptr, size_t size);
void gc_free(void *ptr);
hashmap_t *gc_hashmap_new(hashmap_t *fallback);