diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-10-12 19:49:41 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-10-14 12:09:28 +0200 |
commit | 05cc0ee7a7c7dc442e22dfdc22c0574ac6b3e71b (patch) | |
tree | 16355886feba68f498a723b74a830dda4c5efa84 /lib.h | |
parent | 8b4134e040561c19de733b017c6e2ce5bb49de48 (diff) |
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 <jo@mein.io>
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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_ */ |