FNFT
Files | Macros | Typedefs | Functions
Error codes

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 ()
 

Detailed Description

Macro Definition Documentation

◆ FNFT_EC_ASSERTION_FAILED

#define FNFT_EC_ASSERTION_FAILED   8

Error code if an assertion failed.

◆ FNFT_EC_DIV_BY_ZERO

#define FNFT_EC_DIV_BY_ZERO   3

Error code for division by zero.

◆ FNFT_EC_INVALID_ARGUMENT

#define FNFT_EC_INVALID_ARGUMENT   2

Error code for invalid arguments.

◆ FNFT_EC_NOMEM

#define FNFT_EC_NOMEM   1

Error code for out of memory.

◆ FNFT_EC_NOT_YET_IMPLEMENTED

#define FNFT_EC_NOT_YET_IMPLEMENTED   6

Error code for a feature that has not yet been implemented.

◆ FNFT_EC_OTHER

#define FNFT_EC_OTHER   5

Error code for other, unspecified errors.

◆ FNFT_EC_SANITY_CHECK_FAILED

#define FNFT_EC_SANITY_CHECK_FAILED   7

Error code if a sanity check of a final or intermediate result failed.

◆ FNFT_EC_TEST_FAILED

#define FNFT_EC_TEST_FAILED   4

Error code for test failure.

◆ FNFT_SUCCESS

#define FNFT_SUCCESS   0

Value that routines return in the absence of errors.

Typedef Documentation

◆ fnft_printf_ptr_t

typedef FNFT_INT(* fnft_printf_ptr_t) (const char *,...)

Function pointer to a printf-like function.

Function Documentation

◆ fnft_errwarn_getprintf()

fnft_printf_ptr_t fnft_errwarn_getprintf ( )

Returns a pointer to the printf function that FNFT uses to print errors and warnings.

◆ fnft_errwarn_setprintf()

void fnft_errwarn_setprintf ( fnft_printf_ptr_t  printf_ptr)

Sets the printf function that FNFT uses to print errors and warnings.