aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/include/gc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/include/gc.h b/system/include/gc.h
index a4f7afbb..773098ff 100644
--- a/system/include/gc.h
+++ b/system/include/gc.h
@@ -32,9 +32,14 @@ void GC_FREE(void *ptr);
void GC_REGISTER_FINALIZER_NO_ORDER((void*)ptr, void (*func)(), void *arg,
void *(*old_func)(), void *old_arg);
-/* Non-Boehm addition. Call this once per frame or such, it will collect if necessary */
+/* Non-Boehm additions */
+
+/* Call this once per frame or such, it will collect if necessary */
void GC_MAYBE_COLLECT();
+/* Forces a GC. Mainly useful for testing, but call it if you know a good time to GC in your app. */
+void GC_FORCE_COLLECT();
+
#ifdef __cplusplus
}
#endif