blob: 8623cbaa35dcb7876e04a814186429a893a247e2 [file] [log] [blame]
swissChili6d6525e2021-06-15 21:20:53 -07001#pragma once
2
swissChili9e57da42021-06-15 22:22:46 -07003#include "lisp.h"
4
5// I hate this
6extern value_t *gc_base;
7
8void gc_set_base_here();
9
swissChilie9fec8b2021-06-22 13:59:33 -070010value_t alloc_to_value(struct alloc *a);
swissChili6d6525e2021-06-15 21:20:53 -070011void _do_gc(unsigned int esp, unsigned int ebp);
swissChilie9fec8b2021-06-22 13:59:33 -070012void _mark(value_t value, unsigned int *marked);
swissChili6d6525e2021-06-15 21:20:53 -070013void _sweep();
swissChilib8fd4712021-06-23 15:32:04 -070014void free_all();