|
| typedef void | ltfat_error_handler_t(int ltfat_errno, const char *file, int line, const char *funcname, const char *reason) |
| |
|
| enum | ltfaterr_status {
LTFATERR_SUCCESS = 0,
LTFATERR_FAILED = -1,
LTFATERR_NOMEM = -2,
LTFATERR_INITFAILED = -3,
LTFATERR_NULLPOINTER = -4,
LTFATERR_EMPTY = -5,
LTFATERR_BADARG = -6,
LTFATERR_NOTPOSARG = -7,
LTFATERR_NOTINRANGE = -8,
LTFATERR_OVERFLOW = -9,
LTFATERR_UNDERFLOW = -10,
LTFATERR_CANNOTHAPPEN = -11,
LTFATERR_BADSIZE = -12,
LTFATERR_BADREQSIZE = -13,
LTFATERR_NOTSUPPORTED = -14,
LTFATERR_BADTRALEN = -99,
LTFATERR_NOTAFRAME = -100,
LTFATERR_NOTPAINLESS = -101,
LTFATERR_NOTPOSDEFMATRIX = -102,
LTFATERR_NOBLASLAPACK = -200
} |
| |
Errors are negative numbers. Positive numbers are reserved for other purposes (like returning number of samples written)
◆ ltfat_error_handler_t
| typedef void ltfat_error_handler_t(int ltfat_errno, const char *file, int line, const char *funcname, const char *reason) |
Function signature for a custom error handler
- Parameters
-
| [in] | ltfat_errno | Status code of the error |
| [in] | file | Filename |
| [in] | line | Line |
| [in] | funcname | Function name |
| [out] | reason | Error message |
◆ ltfat_set_error_handler()
Register a new error handler
Default error handling behavior can be recovered by passing NULL.
- Returns
- Old error handler
◆ ltfat_set_error_handler_off()
Disable error handling
- Returns
- Old error handler