From 9a61168aec3373be702bdbf252043ce3605f2b5b Mon Sep 17 00:00:00 2001 From: nodist Date: Sun, 1 Nov 2026 10:07:03 -0500 Subject: add basic gc test --- include/kpl/class.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/kpl/class.h') diff --git a/include/kpl/class.h b/include/kpl/class.h index 5957a98..0842db2 100644 --- a/include/kpl/class.h +++ b/include/kpl/class.h @@ -1,11 +1,17 @@ /* - * The kpl class a 64bit value with an table of functions + * The kpl class a 64bit value with a table of functions */ #pragma once +/* + * How to traverse the object and mark kpl_object_gc + */ +typedef void kpl_interface_gc_mark_object_fn(void *object); + typedef struct { -// TODO KPL INTERFACE + // TODO + kpl_interface_gc_mark_object_fn *gc_mark_object_fn; } kpl_interface; typedef struct { -- cgit v1.2.3