diff options
Diffstat (limited to 'src/logerr.h')
-rw-r--r-- | src/logerr.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/logerr.h b/src/logerr.h new file mode 100644 index 0000000..56b2432 --- /dev/null +++ b/src/logerr.h @@ -0,0 +1,12 @@ +void +vlogerr( + + const char *const file, + const char *const function, + const int lineno, + FILE *restrict stream, + const char *restrict format, + ... +); + +#define logerr(...) vlogerr(__FILE__, __func__, __LINE__, stderr, __VA_ARGS__) |