diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-11-13 16:28:13 -0500 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-11-13 16:28:13 -0500 |
| commit | c3d23d3091c23978b12c140e6cfd964eff1d3986 (patch) | |
| tree | 3342a73aea427fa19d2b0936a98e37fbe479c85d /include/kpl/class.h | |
| parent | 75c8828d804f45cf8f44af73bfe87e0f3eaf9a9e (diff) | |
Diffstat (limited to 'include/kpl/class.h')
| -rw-r--r-- | include/kpl/class.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/include/kpl/class.h b/include/kpl/class.h deleted file mode 100644 index 8cb05da..0000000 --- a/include/kpl/class.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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); - -/* - * A free for objects allocated outside the kpl allocator, wrapped in a kpl_object_native - */ -typedef void kpl_interface_native_free_fn(kpl_object_native *object_native); - -/* - * `log operator - */ -typedef void kpl_interface_log_fn(kpl_thread *thread, void *object); - -/* - * `copy operator - */ -typedef kpl_value64 kpl_interface_copy_fn(kpl_thread *thread_from, kpl_thread *thread_to, kpl_value64 object); - -typedef struct { - // TODO - kpl_interface_gc_mark_object_fn *gc_mark_object_fn; - kpl_interface_native_free_fn *native_free_fn; - kpl_interface_log_fn *log_fn; - kpl_interface_copy_fn *copy_fn; -} kpl_interface; - -typedef struct { - kpl_value64 value; - const kpl_interface *interface; -} kpl_class; |
