|
GEL
0.99
|
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_EDEPEND 16 |
| #define | GEL_WDYNAMIC 1 |
| #define | GEL_WNONFATAL 3 |
| #define | GEL_IS_WARNING (gel_errno & 1) |
| #define | GEL_IS_ERROR (!(gel_errno & 1)) |
| #define | GEL_ERRNO (gel_errno >> 1) |
Functions | |
| const char * | gel_strerror (void) |
Variables | |
| int | gel_errno = GEL_ESUCCESS |
GEL provides a standard way of error management:
| #define GEL_EDEPEND 16 |
Dependency problem.
| #define GEL_EFORMAT 4 |
Error in ELF file format.
| #define GEL_EIO 2 |
Error inf input / ouput.
| #define GEL_ENOTFOUND 8 |
File, symbol, section not found.
| #define GEL_ENOTLOADED 10 |
Data not already loaded.
| #define GEL_ENOTSUPP 6 |
Unsupported ELF feature.
| #define GEL_ESUCCESS 0 |
Last operation has been successful.
Index out of bounds.
Not enough ressources (usually memory).
| #define GEL_IS_ERROR (!(gel_errno & 1)) |
Test if gel_errno contains an error.
| #define GEL_IS_WARNING (gel_errno & 1) |
Test if gel_errno contains a warning.
| #define GEL_WDYNAMIC 1 |
Dynamic problem.
| #define GEL_WNONFATAL 3 |
Non-fatal problem.
| const char* gel_strerror | ( | void | ) |
Get the message associated with the current gel_errno.
| int gel_errno = GEL_ESUCCESS |
Usually, the GEL functions shows an error by returning a -1 value or a NULL pointer. More details about the error may be found in this variable.
This variable contains one of definitions GEL_Exxx or GEL_Wxxx.