|
csnip
0.1
|
Error handling. More...
#include <stdio.h>#include <stdlib.h>

Go to the source code of this file.
Macros | |
| #define | csnip_err_Unhandled(errnumber) |
| Handler for uncaught errors. More... | |
| #define | csnip_err_Raise(value, err_expr) |
| Raises an error in a macro. More... | |
| #define | csnip_err_SUCCESS 0 |
| Success / no error. | |
| #define | csnip_err_ERRNO (-1) |
| Error code in errno. | |
| #define | csnip_err_NOMEM (-2) |
| Out of memory. | |
| #define | csnip_err_UNDERFLOW (-3) |
| Data structure underflow. | |
| #define | csnip_err_RANGE (-4) |
| Range error. | |
| #define | csnip_err_FORMAT (-5) |
| Format error. | |
| #define | csnip_err_UNEXPECTED_NULL (-6) |
| Invalid NULL pointer. | |
| #define | csnip_err_INVAL (-7) |
| Invalid value. | |
| #define | csnip_err_CALLFLOW (-8) |
| Invalid call flow. | |
Functions | |
| void | csnip_err_str (int errnum, char *buf, size_t buf_len) |
| Return a descriptive error string. More... | |