From 05cc0ee7a7c7dc442e22dfdc22c0574ac6b3e71b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 12 Oct 2020 19:49:41 +0200 Subject: treewide: rework source file and callstack handling - Keep an open FILE* reference to processed source files in order to be able to rewind and extract error context later - Build a proper call stack when invoking utpl functions - Report call stack in exceptions Signed-off-by: Jo-Philipp Wich --- lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib.h') diff --git a/lib.h b/lib.h index 9471141..084714d 100644 --- a/lib.h +++ b/lib.h @@ -28,6 +28,6 @@ typedef struct json_object *(ut_c_fn)(struct ut_state *, uint32_t, struct json_o void ut_lib_init(struct ut_state *state, struct json_object *scope); -char *ut_format_error(struct ut_state *state, const char *expr); +char *ut_format_error(struct ut_state *state, FILE *fp); #endif /* __LIB_H_ */ -- cgit v1.2.3