From 8fb8da605419c427605ca91c67b367c9a4cd0eec Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 6 Oct 2020 17:21:54 +0200 Subject: treewide: rework exception context formatting Signed-off-by: Jo-Philipp Wich --- ast.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ast.h') 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); -- cgit v1.2.3