summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index ebd487ed..c4ae9274 100644
--- a/gc.c
+++ b/gc.c
@@ -395,6 +395,11 @@ static int in_heap(val ptr)
return 0;
}
+int gc_is_heap_obj(union obj *ptr)
+{
+ return in_heap(ptr);
+}
+
static void mark_mem_region(val *low, val *high)
{
if (low > high) {