From cd4125bb97410465b43344148ff629389eb3809e Mon Sep 17 00:00:00 2001 From: Yorick Hardy Date: Fri, 3 Jan 2025 00:51:02 +0200 Subject: [PATCH] types.h: make gc_alloc_pair public This will be used to create the thread context. Partial work towards addressing issue #534. --- include/cyclone/types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/cyclone/types.h b/include/cyclone/types.h index cabf68c1..486dc818 100644 --- a/include/cyclone/types.h +++ b/include/cyclone/types.h @@ -1261,6 +1261,9 @@ typedef pair_type *pair; n->pair_car = a; \ n->pair_cdr = d; +/** Create a new pair in the thread's heap */ +void *gc_alloc_pair(gc_thread_data * data, object head, object tail); + /** * Set members of the given pair * @param n - Pointer to a pair object