|
GEL
0.99
|
#include <gel/common.h>Go to the source code of this file.
Macros | |
| #define | GEL_ESUCCESS 0 |
| #define | GEL_EIO 2 |
| #define | GEL_EFORMAT 4 |
| #define | GEL_ENOTSUPP 6 |
| #define | GEL_ENOTFOUND 8 |
| #define | GEL_ENOTLOADED 10 |
| #define | GEL_EINVAL 12 |
| #define | GEL_ERESOURCE 14 |
| #define | GEL_EDEPEND 16 |
| #define | GEL_ESTACK 18 |
| #define | GEL_EMAX 18 |
| #define | GEL_WDYNAMIC 1 |
| #define | GEL_WNONFATAL 3 |
| #define | GEL_WMAX 3 |
| #define | GEL_IS_WARNING (gel_errno & 1) |
| #define | GEL_IS_ERROR (!(gel_errno & 1)) |
| #define | GEL_ERRNO (gel_errno >> 1) |
Typedefs | |
| typedef void() | gel_error_fun_t(int code, const char *msg) |
Functions | |
| const char * | gel_strerror (void) |
| gel_error_fun_t * | gel_set_error_fun (gel_error_fun_t *fun) |
| void | gel_set_error (int code, const char *fmt,...) |
Variables | |
| int | gel_errno |
| #define GEL_EINVAL 12 |
| #define GEL_EMAX 18 |
| #define GEL_ERESOURCE 14 |
| #define GEL_ESTACK 18 |
| #define GEL_WMAX 3 |
| typedef void() gel_error_fun_t(int code, const char *msg) |
| void gel_set_error | ( | int | code, |
| const char * | fmt, | ||
| ... | |||
| ) |
Generate an error using new error function system.
| code | Error code. |
| fmt | Message format. |
| ... | Format arguments. |
| gel_error_fun_t* gel_set_error_fun | ( | gel_error_fun_t * | fun | ) |
Set the function which will be called when an error or a warning arise.
| fun | New error function. |