diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-13 17:02:34 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-13 17:02:34 -0400 |
| commit | 4c008d258f6fd23fd64e2a6b059448748d7f7d24 (patch) | |
| tree | 6db6b1d6526c17ce338a5146706bd9c5d8e5929e /docs/application/error.md | |
| parent | f1773b4959a35f28b37617f775f4fc1683e4f654 (diff) | |
every type has access to its parent
Diffstat (limited to 'docs/application/error.md')
| -rw-r--r-- | docs/application/error.md | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/docs/application/error.md b/docs/application/error.md index f0d844a..2e1e703 100644 --- a/docs/application/error.md +++ b/docs/application/error.md @@ -5,9 +5,23 @@ ## Object Definitions ```c +typedef union : uin16_t { + ERROR_C = 1 << 0, + ERROR_TOKEN = 1 << 1, + ERROR_TYPE = 1 << 2 +} kpl_error_flags; + typedef struct _kpl_error { - int32_t line; - char *file, *function; + uint16_t line, flags; + uin32_t class_options; + struct _kpl_error *stack; + union { + struct { + char *file, char *function; + } c; + kpl_token token; + kpl_type *type; + } source; kpl_class class; } kpl_error; ``` |
