infix
A JIT-Powered FFI Library for C
|
Public structures and enumerations for detailed error reporting. More...
Classes | |
struct | infix_error_details_t |
A structure holding detailed information about the last error that occurred on the current thread. More... | |
Enumerations | |
enum | infix_error_category_t { INFIX_CATEGORY_NONE , INFIX_CATEGORY_GENERAL , INFIX_CATEGORY_ALLOCATION , INFIX_CATEGORY_PARSER , INFIX_CATEGORY_ABI } |
Broad categories for errors that can occur in the library. More... | |
enum | infix_error_code_t { INFIX_CODE_SUCCESS = 0 , INFIX_CODE_UNKNOWN , INFIX_CODE_OUT_OF_MEMORY = 100 , INFIX_CODE_EXECUTABLE_MEMORY_FAILURE , INFIX_CODE_PROTECTION_FAILURE , INFIX_CODE_UNEXPECTED_TOKEN = 200 , INFIX_CODE_UNTERMINATED_AGGREGATE , INFIX_CODE_INVALID_KEYWORD , INFIX_CODE_MISSING_RETURN_TYPE , INFIX_CODE_INTEGER_OVERFLOW , INFIX_CODE_RECURSION_DEPTH_EXCEEDED , INFIX_CODE_EMPTY_MEMBER_NAME , INFIX_CODE_UNSUPPORTED_ABI = 300 , INFIX_CODE_TYPE_TOO_LARGE , INFIX_CODE_UNRESOLVED_NAMED_TYPE , INFIX_CODE_INVALID_MEMBER_TYPE , INFIX_CODE_LIBRARY_NOT_FOUND = 400 , INFIX_CODE_SYMBOL_NOT_FOUND , INFIX_CODE_LIBRARY_LOAD_FAILED } |
Specific error codes providing detailed information about a failure. More... | |
Functions | |
infix_error_details_t | infix_get_last_error (void) |
Retrieves detailed information about the last error that occurred on the current thread. | |
Public structures and enumerations for detailed error reporting.
Broad categories for errors that can occur in the library.
enum infix_error_code_t |
Specific error codes providing detailed information about a failure.
This enumeration provides fine-grained details about why an operation failed. It is designed to be used in conjunction with infix_get_last_error()
to enable robust, programmatic error handling and clear diagnostic messages.
infix_error_details_t infix_get_last_error | ( | void | ) |
Retrieves detailed information about the last error that occurred on the current thread.
This function is thread-safe. Each thread maintains its own error state. A successful API call will reset the error state for the current thread.
infix_error_details_t
struct containing the details of the last error. If no error has occurred since the last successful operation, the category
will be INFIX_CATEGORY_NONE
and the code
will be INFIX_CODE_SUCCESS
.Retrieves detailed information about the last error that occurred on the current thread.