ZEDA
1.6.18
|
Macros | |
#define | eprintf(fmt, ...) fprintf( stderr, fmt, ##__VA_ARGS__ ) |
formatted output to stderr. More... | |
#define | zEchoOn() ( __zeda_echo = true ) |
#define | zEchoOff() ( __zeda_echo = false ) |
#define | ZRUNERROR(msg, ...) ZECHO( "run-time error: " msg, ##__VA_ARGS__ ) |
#define | ZRUNWARN(msg, ...) ZECHO( "warning: " msg, ##__VA_ARGS__ ) |
#define | ZECHO(msg, ...) ( __zeda_echo ? eprintf( msg " (%s).\n", ##__VA_ARGS__, __FUNCTION__ ) : 0 ) |
#define | ZOPENERROR(m) ZRUNERROR( "cannot open file: %s", (m) ) |
#define | ZALLOCERROR() ZRUNERROR( "cannot allocate memory" ) |
#define eprintf | ( | fmt, | |
... | |||
) | fprintf( stderr, fmt, ##__VA_ARGS__ ) |
formatted output to stderr.
eprintf() outputs a string formated by fmt to stderr (the standard error). The output format conforms to the printf() family specification.
#define zEchoOn | ( | ) | ( __zeda_echo = true ) |
make echo on.
#define zEchoOff | ( | ) | ( __zeda_echo = false ) |
make echo off.
#define ZRUNERROR | ( | msg, | |
... | |||
) | ZECHO( "run-time error: " msg, ##__VA_ARGS__ ) |
output a run-time error message.
#define ZRUNWARN | ( | msg, | |
... | |||
) | ZECHO( "warning: " msg, ##__VA_ARGS__ ) |
output a run-time warning message.
#define ZECHO | ( | msg, | |
... | |||
) | ( __zeda_echo ? eprintf( msg " (%s).\n", ##__VA_ARGS__, __FUNCTION__ ) : 0 ) |
output a run-time echo.
#define ZOPENERROR | ( | m | ) | ZRUNERROR( "cannot open file: %s", (m) ) |
output an error message when failing to open file m.
#define ZALLOCERROR | ( | ) | ZRUNERROR( "cannot allocate memory" ) |
output an error message whan failing to allocate memory.