types.h: make gc_alloc_pair public

This will be used to create the thread context.
Partial work towards addressing issue #534.
This commit is contained in:
Yorick Hardy 2025-01-03 00:51:02 +02:00
parent db6956e5aa
commit cd4125bb97

View file

@ -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