MPHELL
4.0.0
|
Declaration of error functions. More...
Go to the source code of this file.
Data Structures | |
struct | mphell_status_t |
The status is a couple (flag, information) More... | |
Macros | |
#define | MPHELL_ASSERT_LINE -1 |
#define | MPHELL_ASSERT_FILE "" |
#define | MPHELL_ASSERT_FAIL(info) |
#define | MPHELL_ASSERT_ALWAYS(expr, info) |
#define | MPHELL_ASSERT(expr, info) do {} while (0) |
Typedefs | |
typedef enum mphell_status_flag_enum | mphell_status_flag |
Enumerate status flag. | |
typedef mphell_status_t | mphell_status[1] |
The status is a couple (flag, information) | |
Enumerations | |
enum | mphell_status_flag_enum { MPHELL_SUCCESS, MPHELL_ERROR_RANDOM, MPHELL_CATASTROPHIC_ERROR_RANDOM, MPHELL_RESEED_REQUIRED } |
Enumerate status flag. More... | |
Functions | |
void | mphell_assert_error (const char *filename, int line, const char *expr) |
Write in stderr, filename, line and expr, free mphell. More... | |
void | mphell_error (char *expr) |
Write in stderr, filename, line and expr, free mphell. More... | |
void | mphell_error_free (char *expr) |
Write in stderr, filename, line and expr, free expr and mphell. More... | |
Declaration of error functions.
Definition in file mphell-errors.h.
#define MPHELL_ASSERT_ALWAYS | ( | expr, | |
info | |||
) |
Definition at line 49 of file mphell-errors.h.
#define MPHELL_ASSERT_FAIL | ( | info | ) |
Definition at line 46 of file mphell-errors.h.
Enumerate status flag.
Definition at line 66 of file mphell-errors.h.
void mphell_assert_error | ( | const char * | filename, |
int | line, | ||
const char * | expr | ||
) |
Write in stderr, filename, line and expr, free mphell.
filename | File where the error occured |
line | Line where the rrors occured |
expr | Error description |
Definition at line 29 of file mphell-errors.c.
void mphell_error | ( | char * | expr | ) |
Write in stderr, filename, line and expr, free mphell.
expr | Error description |
Definition at line 45 of file mphell-errors.c.
void mphell_error_free | ( | char * | expr | ) |
Write in stderr, filename, line and expr, free expr and mphell.
expr | Error description, allocated dynamically |
Definition at line 61 of file mphell-errors.c.