summaryrefslogtreecommitdiffhomepage
path: root/eval.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-16 22:00:21 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-16 22:00:21 +0200
commit54bb15b2be3656e91386b80074f45591b20fed3f (patch)
treee1df302fea57cae41a44b1ce86e65145768e8c94 /eval.h
parent8a8f86c54ddf9e5ddd3b06e3067ee61a538c35c0 (diff)
treewide: rework exception handling
Use setjmp() and longjmp() to deal with runtime exceptions. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'eval.h')
-rw-r--r--eval.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.h b/eval.h
index 7f707ca..30d29d5 100644
--- a/eval.h
+++ b/eval.h
@@ -24,8 +24,8 @@
#include "ast.h"
-__attribute__((format(printf, 3, 0))) struct json_object *
-ut_exception(struct ut_state *state, uint32_t op, const char *fmt, ...);
+__attribute__((noreturn,format(printf, 3, 0))) void
+ut_throw(struct ut_state *state, uint32_t off, const char *fmt, ...);
void
ut_putval(struct json_object *val);