diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-10-06 17:21:54 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-10-06 17:52:33 +0200 |
commit | 8fb8da605419c427605ca91c67b367c9a4cd0eec (patch) | |
tree | 5033b34dcf71742e5c0e7b32a5bc58fb57fff127 /ast.h | |
parent | 5f19e5870007d57034adea5f124e3c87413a1aaf (diff) |
treewide: rework exception context formatting
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'ast.h')
-rw-r--r-- | ast.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |