summaryrefslogtreecommitdiffhomepage
path: root/ast.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-06 17:21:54 +0200
committerJo-Philipp Wich <jo@mein.io>2020-10-06 17:52:33 +0200
commit8fb8da605419c427605ca91c67b367c9a4cd0eec (patch)
tree5033b34dcf71742e5c0e7b32a5bc58fb57fff127 /ast.h
parent5f19e5870007d57034adea5f124e3c87413a1aaf (diff)
treewide: rework exception context formatting
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ast.h b/ast.h
index 8d9a8eb..339c178 100644
--- a/ast.h
+++ b/ast.h
@@ -165,6 +165,11 @@ struct json_object *ut_new_double(double v);
struct json_object *ut_new_null(void);
struct json_object *ut_new_regexp(const char *source, bool icase, bool newline, bool global, char **err);
+__attribute__((format(printf, 3, 0)))
+struct json_object *ut_new_exception(struct ut_state *s, uint32_t off, const char *fmt, ...);
+
+#define ut_exception ut_new_exception
+
struct ut_scope *ut_new_scope(struct ut_state *s, struct ut_scope *parent);
struct ut_scope *ut_parent_scope(struct ut_scope *scope);
struct ut_scope *ut_acquire_scope(struct ut_scope *scope);