Brief info.
More...
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
Go to the source code of this file.
Brief info.
Detailed info.
◆ ERRCHK
Value: { \
if (!(retval)) \
ERROR(#retval " was false"); \
}
◆ ERRCHK_ALWAYS
| #define ERRCHK_ALWAYS |
( |
|
retval | ) |
|
Value: { \
if (!(retval)) \
ERROR(#retval " was false"); \
}
◆ ERROR
Value: { \
time_t t; \
time(&t); \
fprintf(stderr, "%s", ctime(&t)); \
fprintf(stderr, "\tError in file %s line %d: %s\n", __FILE__, __LINE__, str); \
fflush(stderr); \
exit(EXIT_FAILURE); \
abort(); \
}
◆ WARNCHK
| #define WARNCHK |
( |
|
retval | ) |
|
Value: { \
if (!(retval)) \
WARNING(#retval " was false"); \
}
◆ WARNCHK_ALWAYS
| #define WARNCHK_ALWAYS |
( |
|
retval | ) |
|
Value: { \
if (!(retval)) \
WARNING(#retval " was false"); \
}
◆ WARNING
Value: { \
time_t t; \
time(&t); \
fprintf(stderr, "%s", ctime(&t)); \
fprintf(stderr, "\tWarning in file %s line %d: %s\n", __FILE__, __LINE__, str); \
fflush(stderr); \
}