![]() |
das2C
das core C utilities (v3)
|
Functions | |
| void | das_spice_err_setup () |
| Setup spice so that errors are not automatically output to the standard output channel. | |
| const char * | das_get_spice_error () |
| Get a spice error as string. | |
| int | das_send_spice_err (int nDasVer, const char *sErrType) |
| Reads a spice error and outputs it as a das exception, the program should only call this if failed_ returns non-zero, and it should exit after calling this function. | |
| int | das_print_spice_error (const char *sProgName) |
| Print a spice error to standard output. | |
| void das_spice_err_setup | ( | ) |
Setup spice so that errors are not automatically output to the standard output channel.
Das2 readers (and unix programs in general) are only supposed to output data to standard out, not error messages.
| const char * das_get_spice_error | ( | ) |
Get a spice error as string.
@Warning This function is not MT safe, but then again SPICE isn't MT safe, so not a big deal.
| int das_send_spice_err | ( | int | nDasVer, |
| const char * | sErrType | ||
| ) |
Reads a spice error and outputs it as a das exception, the program should only call this if failed_ returns non-zero, and it should exit after calling this function.
| nDasVer | - Set to 1 to get das1 compatible output, 2 to get das2 output |
| sErrType | - Use one of the predefined strings from the core das2 library: |
| int das_print_spice_error | ( | const char * | sProgName | ) |
Print a spice error to standard output.