5 static __thread
struct {
12 } errinfo
= {0, NULL
, NULL
, 0, NULL
, NULL
};
14 err_t
make_error_internal(err_t n
, void *obj
, const char *file
, const char *func
, int line
, const char *fmt
, ...)
18 vasprintf(&errinfo
.msg
, fmt
, ap
);
28 err_t
get_last_error(void)
33 const char *get_last_error_file(void)
38 const char *get_last_error_func(void)
43 int get_last_error_line(void)
48 const char *get_last_error_message(void)