summaryrefslogtreecommitdiffhomepage
path: root/ast.h
diff options
context:
space:
mode:
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);