FNFT
|
Files | |
file | fnft_errwarn.h |
Controls error messages. | |
Macros | |
#define | FNFT_SUCCESS 0 |
#define | FNFT_EC_NOMEM 1 |
#define | FNFT_EC_INVALID_ARGUMENT 2 |
#define | FNFT_EC_DIV_BY_ZERO 3 |
#define | FNFT_EC_TEST_FAILED 4 |
#define | FNFT_EC_OTHER 5 |
#define | FNFT_EC_NOT_YET_IMPLEMENTED 6 |
#define | FNFT_EC_SANITY_CHECK_FAILED 7 |
#define | FNFT_EC_ASSERTION_FAILED 8 |
Typedefs | |
typedef FNFT_INT(* | fnft_printf_ptr_t) (const char *,...) |
Functions | |
void | fnft_errwarn_setprintf (fnft_printf_ptr_t printf_ptr) |
fnft_printf_ptr_t | fnft_errwarn_getprintf () |
#define FNFT_EC_ASSERTION_FAILED 8 |
Error code if an assertion failed.
#define FNFT_EC_DIV_BY_ZERO 3 |
Error code for division by zero.
#define FNFT_EC_INVALID_ARGUMENT 2 |
Error code for invalid arguments.
#define FNFT_EC_NOMEM 1 |
Error code for out of memory.
#define FNFT_EC_NOT_YET_IMPLEMENTED 6 |
Error code for a feature that has not yet been implemented.
#define FNFT_EC_OTHER 5 |
Error code for other, unspecified errors.
#define FNFT_EC_SANITY_CHECK_FAILED 7 |
Error code if a sanity check of a final or intermediate result failed.
#define FNFT_EC_TEST_FAILED 4 |
Error code for test failure.
#define FNFT_SUCCESS 0 |
Value that routines return in the absence of errors.
typedef FNFT_INT(* fnft_printf_ptr_t) (const char *,...) |
Function pointer to a printf-like function.
fnft_printf_ptr_t fnft_errwarn_getprintf | ( | ) |
Returns a pointer to the printf function that FNFT uses to print errors and warnings.
void fnft_errwarn_setprintf | ( | fnft_printf_ptr_t | printf_ptr | ) |
Sets the printf function that FNFT uses to print errors and warnings.