From 559eff22d201f0dfa16198ae7724f173f1ea948c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 10 Jul 2021 19:37:40 +0200 Subject: types, vm: adjust GC api Provide separate public ucv_gc() and ucv_freeall() functions to perform an incremental and complete GC run respectively. Signed-off-by: Jo-Philipp Wich --- include/ucode/types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ucode/types.h b/include/ucode/types.h index e2cb15d..da19f9b 100644 --- a/include/ucode/types.h +++ b/include/ucode/types.h @@ -434,6 +434,8 @@ ucv_clear_mark(uc_value_t *uv) bool ucv_equal(uc_value_t *, uc_value_t *); -void ucv_gc(uc_vm_t *, bool); +void ucv_gc(uc_vm_t *); + +void ucv_freeall(uc_vm_t *); #endif /* __TYPES_H_ */ -- cgit v1.2.3