|
HiRep 0.1
|
Error handling functions. More...
#include <stdlib.h>#include <stdio.h>#include <stdarg.h>#include "libhr_core.h"#include "io.h"#include "geometry.h"Functions | |
| void | error (int test, int no, const char *name, const char *text,...) |
| Print message to error file defined on startup. | |
Error handling functions.
| void error | ( | int | test, |
| int | no, | ||
| const char * | name, | ||
| const char * | text, | ||
| ... ) |
Print message to error file defined on startup.
| test | Condition on whether an error should be raised. 0 for no error and continue 1 for error, stop and print error message |
| no | Exit Code Value smaller than zero exits immediately with code 0. Value larger or equal then zero exits with code given after finalizing. |
| name | Function name, where the error was raised |
| text | Error message text |