diff options
| author | EuAndreh <eu@euandre.org> | 2025-01-12 00:14:03 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2025-01-12 14:27:57 -0300 |
| commit | 44d56f5311f98a8955c67638e7520963dbd4d845 (patch) | |
| tree | fbb2c58c79f1730ff62c83cef116fb5c0e035dfe /src/logerr.h | |
| parent | Replace src/config.h with <s.h>; incorporate changes from other projects (diff) | |
| download | pindaiba-44d56f5311f98a8955c67638e7520963dbd4d845.tar.gz pindaiba-44d56f5311f98a8955c67638e7520963dbd4d845.tar.xz | |
Revamp lib, simplify it a bit and address some FIXMEs
Diffstat (limited to '')
| -rw-r--r-- | src/logerr.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/src/logerr.h b/src/logerr.h index 736da7a..346989d 100644 --- a/src/logerr.h +++ b/src/logerr.h @@ -1,10 +1,19 @@ -#define logerr(...) vlogerr(__FILE__, __func__, __LINE__, stderr, __VA_ARGS__) +#define logerr(...) logerrf(__FILE__, __func__, __LINE__, __VA_ARGS__) void -vlogerr( +vflogerrf( + const char *const file, + const char *const function, + const int lineno, + FILE *restrict stream, + const char *restrict format, + va_list args +); +void +flogerrf( const char *const file, const char *const function, const int lineno, @@ -12,3 +21,15 @@ vlogerr( const char *restrict format, ... ); + +void +logerrf( + const char *const file, + const char *const function, + const int lineno, + const char *restrict format, + ... +); + +void +logerr_set_stream(FILE *stream); |
