diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-20 01:08:39 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-20 20:44:01 +0200 |
commit | 97d0d18bf99dd947259feeb5a2f2cbb36a3e9f41 (patch) | |
tree | 399d8db63d21d4a3ca08e30f60be9e3fb44e30c7 /eval.h | |
parent | a15ca46d283e0f7ae84650b4526cf138e6e7e886 (diff) |
Revert "treewide: rework exception handling"
This reverts commit 54bb15b2be3656e91386b80074f45591b20fed3f.
Relying on setjmp() / longjmp() causes too many headaches trying to track
and properly release intermediate values.
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__((noreturn,format(printf, 3, 0))) void -ut_throw(struct ut_state *state, uint32_t off, const char *fmt, ...); +__attribute__((format(printf, 3, 0))) struct json_object * +ut_exception(struct ut_state *state, uint32_t op, const char *fmt, ...); void ut_putval(struct json_object *val); |