diff options
Diffstat (limited to 'src/logerr.h')
-rw-r--r-- | src/logerr.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/logerr.h b/src/logerr.h new file mode 100644 index 0000000..77f98bd --- /dev/null +++ b/src/logerr.h @@ -0,0 +1,23 @@ +#ifndef LOGERR_H +#define LOGERR_H + +#include "config.h" + +#include <stdio.h> + + +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__) + + +#endif |