82 self = malloc (
sizeof *self);
105 self->extra = strdup (
extra);
lumiera_err lumiera_error_peek(void)
Check current error state without clearing it Please avoid this function and use lumiera_error() if p...
lumiera_errorcontext * LumieraErrorcontext
const char * lumiera_error_extra(void)
Query the extra context for the last error.
static pthread_once_t lumiera_error_initialized
LumieraErrorcontext lumiera_error_get(void)
lumiera_err lumiera_error(void)
Get and clear current error state.
static void lumiera_error_tls_init(void)
lumiera_err lumiera_error_set(lumiera_err nerr, const char *extra)
Set error state for the current thread.
int lumiera_error_expect(lumiera_err expected)
Expect some error Check that the current error state matches some expectation, if true then the error...
static void lumiera_error_tls_delete(void *err)
static pthread_key_t lumiera_error_tls
Holding error and some context data.
Lumiera error handling (C interface).
#define LUMIERA_DIE(err)
Abort unconditionally with a 'Fatal Error!' message.
#define LUMIERA_ERROR_DEFINE(err, msg)
Definition and initialisation of an error constant.
const_LList llist_cmpfn void * extra