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/value.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'include/kpl/value.h') diff --git a/include/kpl/value.h b/include/kpl/value.h index 1e05c00..e0bf0c7 100644 --- a/include/kpl/value.h +++ b/include/kpl/value.h @@ -1,5 +1,5 @@ /* - * KPL values based on size + * KPL value definitions */ #pragma once @@ -49,3 +49,19 @@ typedef struct { kpl_value64 value; int64_t tag; } kpl_result; + +typedef struct { + void *async, *sync; +} kpl_function; + +/* + * Must match the type of c main return + * if code != KPL_EXIT_CODE_SUCCESS then return code + */ +typedef enum : int32_t { + KPL_EXIT_CODE_SUCCESS = 0, + KPL_EXIT_CODE_ERROR = 1, + KPL_EXIT_CODE_HELP = 2, + KPL_EXIT_CODE_IO_ERROR = 3, + KPL_EXIT_CODE_THREAD_ERROR = 4 +} kpl_exit_code; -- cgit v1.2.3