diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-16 22:00:21 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-16 22:00:21 +0200 |
commit | 54bb15b2be3656e91386b80074f45591b20fed3f (patch) | |
tree | e1df302fea57cae41a44b1ce86e65145768e8c94 /eval.h | |
parent | 8a8f86c54ddf9e5ddd3b06e3067ee61a538c35c0 (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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |