aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2013-02-01 09:39:08 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2013-02-01 09:39:08 +0700
commit3c33204a2d2614be4a3f9e17fc57537246864093 (patch)
treeae492e9dd454c601aabeec2900e46fd6e105b944 /system
parent7740bad81fffe0f6029bf8dae91fbca5cbadf673 (diff)
Support GC_get_heap_size().
Diffstat (limited to 'system')
-rw-r--r--system/include/gc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/include/gc.h b/system/include/gc.h
index 1a236f3d..8c5a8989 100644
--- a/system/include/gc.h
+++ b/system/include/gc.h
@@ -42,6 +42,9 @@ void GC_FREE(void *ptr);
void GC_REGISTER_FINALIZER_NO_ORDER(void *ptr, void (*func)(void *, void *), void *arg,
void *(*old_func)(void *, void *), void *old_arg);
+/* Gets the bytes allocated and managed by the GC */
+int GC_get_heap_size();
+
/* Non-Boehm additions */
/* Call this once per frame or such, it will collect if necessary */