diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-11-01 10:07:03 -0500 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-11-01 10:07:03 -0500 |
| commit | 9a61168aec3373be702bdbf252043ce3605f2b5b (patch) | |
| tree | 49078373733f1eb4294569cede513aa7f82b94f0 /include/kpl/value.h | |
| parent | fcc5294b919856ff04fef859760d48d0da136396 (diff) | |
add basic gc test
Diffstat (limited to 'include/kpl/value.h')
| -rw-r--r-- | include/kpl/value.h | 18 |
1 files changed, 17 insertions, 1 deletions
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; |
