From 4c008d258f6fd23fd64e2a6b059448748d7f7d24 Mon Sep 17 00:00:00 2001 From: nodist Date: Mon, 13 Jul 2026 17:02:34 -0400 Subject: every type has access to its parent --- docs/application/error.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'docs/application/error.md') 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; ``` -- cgit v1.2.3