6 static __thread
struct {
13 } errinfo
= {0, NULL
, NULL
, 0, NULL
, NULL
};
15 err_t
make_error_internal(err_t n
, void *obj
, const char *file
, const char *func
, int line
, const char *fmt
, ...)
19 vasprintf(&errinfo
.msg
, fmt
, ap
);
29 err_t
get_last_error(void)
34 const char *get_last_error_file(void)
39 const char *get_last_error_func(void)
44 int get_last_error_line(void)
49 const char *get_last_error_message(void)