summaryrefslogtreecommitdiff
path: root/src/gc.h
diff options
context:
space:
mode:
authorNathan Ringo <nathan@remexre.com>2024-11-28 22:33:47 -0600
committerNathan Ringo <nathan@remexre.com>2024-11-28 22:33:47 -0600
commitb3149099a17d392289db9699b5b5d83444d25173 (patch)
tree24e84d2ca1469bd87b4379ea2b701218d0465d8f /src/gc.h
parent16e22f9cb39a254bccd20613f7c2cfef75ae15a7 (diff)
Prevent 3DS hangs.
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;