63 return "AE_AML_UNKNOWN_EXCEPTION";
78 if (newHandlers ==
NULL)
static uint64_t handlerCount
static const aml_exception_info_t exceptionTable[]
static aml_exception_handler_t * handlers
void(* aml_exception_handler_t)(aml_state_t *state, aml_exception_t code)
AML exception handler function type.
void aml_exception_raise(aml_state_t *state, aml_exception_t code, const char *function)
Raises an AML exception.
const char * aml_exception_to_string(aml_exception_t code)
Converts an AML exception code to a string.
void aml_exception_unregister(aml_exception_handler_t handler)
Unregisters an AML exception handler.
uint64_t aml_exception_register(aml_exception_handler_t handler)
Registers an AML exception handler.
aml_exception_t
AML exception codes.
@ AML_UNINITIALIZED_ELEMENT
@ AML_UNINITIALIZED_LOCAL
@ AML_INVALID_RESOURCE_TYPE
@ AML_NO_RESOURCE_END_TAG
#define LOG_WARN(format,...)
#define EEXIST
File exists.
#define errno
Error number variable.
#define NULL
Pointer error value.
#define ERR
Integer error value.
_PUBLIC void * malloc(size_t size)
_PUBLIC void free(void *ptr)
_PUBLIC void * memmove(void *_RESTRICT s1, const void *_RESTRICT s2, size_t n)