summaryrefslogtreecommitdiff
path: root/docs/application/error.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/application/error.md')
-rw-r--r--docs/application/error.md18
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;
```