summaryrefslogtreecommitdiff
path: root/src/gc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gc.h')
-rw-r--r--src/gc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gc.h b/src/gc.h
index 8acaacc..af18323 100644
--- a/src/gc.h
+++ b/src/gc.h
@@ -4,7 +4,14 @@
#include "value.h"
void gc_init(void);
-void gc_collect(void);
+
+enum gc_collect_reason {
+ GC_COLLECT_MANUAL,
+ GC_COLLECT_LIMIT,
+ GC_COLLECT_OOM,
+};
+
+void gc_collect(enum gc_collect_reason);
struct object;