diff options
| author | LLLL Colonq <llll@colonq> | 2026-05-06 20:43:42 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-05-06 20:43:42 -0400 |
| commit | cbe112aa52a7ff84935163c442714e49057b2da6 (patch) | |
| tree | 0fad910714f564f9f14467674016af0be8f6cee8 /include | |
| parent | 7748d30575151af59844f43a0e9149b18c40f2f1 (diff) | |
Add pit_get_error
Diffstat (limited to 'include')
| -rw-r--r-- | include/lcq/pit/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/lcq/pit/runtime.h b/include/lcq/pit/runtime.h index 1cf8549..7fada2b 100644 --- a/include/lcq/pit/runtime.h +++ b/include/lcq/pit/runtime.h @@ -110,6 +110,7 @@ bool pit_runtime_print_error(pit_runtime *rt); /* return true if an error has oc i64 pit_dump(pit_runtime *rt, char *buf, i64 len, pit_value v, bool readable); /* if readable is true, try to produce output that can be machine-read (quotes on strings, etc) */ #define pit_trace(rt, v) pit_trace_(rt, "Trace [" __FILE__ ":" PIT_STR(__LINE__) "] %s\n", v) void pit_trace_(pit_runtime *rt, char *format, pit_value v); +pit_value pit_get_error(pit_runtime *rt); void pit_error(pit_runtime *rt, char *format, ...); /* working with small values */ |
