|
mdcore
0.1.5
|
Functions | |
| void | errs_clear () |
| Re-set the error stack. | |
| int | errs_dump (FILE *out) |
| Print the error stack out to the given FILE pointer. | |
| int | errs_register (int id, const char *msg, int line, const char *func, char *file) |
| Dump an error onto the stack. | |
Variables | |
| int | errs_err = errs_err_ok |
| const char * | errs_err_msg [] |
| struct { | |
| int id | |
| int line | |
| const char * msg | |
| const char * func | |
| const char * file | |
| } | errs_stack [errs_maxstack] |
| int | errs_count = 0 |
| void errs_clear | ( | ) |
Re-set the error stack.
| int errs_dump | ( | FILE * | out | ) |
Print the error stack out to the given FILE pointer.
| out | A pointer to a FILE structure. |
| int errs_register | ( | int | id, |
| const char * | msg, | ||
| int | line, | ||
| const char * | func, | ||
| char * | file | ||
| ) |
Dump an error onto the stack.
| id | An error identifier that will be returned. |
| msg | A pointer to a string containing a descriptive error message. |
| line | The line on which the error occured. |
| func | The name of the function in which the error occured. |
| file | The name of the file in which the error occured. |
id. | int errs_count = 0 |
| int errs_err = errs_err_ok |
| const char* errs_err_msg[] |
{
"All is well.",
"An IO-error has occurred." }
| struct { ... } errs_stack[ errs_maxstack ] |
| const char * file |
| const char * func |
| int id |
| int line |
| const char* msg |
1.7.6.1