diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-27 05:27:13 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-03-16 02:25:06 +0000 |
commit | 2f39bd33c32ffcb6624bb3ccd0cff5af4bc2bf8a (patch) | |
tree | 02d41f3f050aa5a47fbd7da4f1c18821db86b3c9 /toxcore/ccompat.h | |
parent | fa8927aa0f90be1b15ef1d059c6f2ce81e2be8f5 (diff) |
Add default stderr logger for logging to nullptr.
This is useful for debugging a function that doesn't have a logger
available. It should not be used in production code, since it outputs to
stderr.
Diffstat (limited to 'toxcore/ccompat.h')
-rw-r--r-- | toxcore/ccompat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/ccompat.h b/toxcore/ccompat.h index 1ceb5a5a..b70850d2 100644 --- a/toxcore/ccompat.h +++ b/toxcore/ccompat.h | |||
@@ -43,9 +43,9 @@ | |||
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #ifdef __GNUC__ | 45 | #ifdef __GNUC__ |
46 | #define GNU_PRINTF __attribute__((__format__(__printf__, 6, 7))) | 46 | #define GNU_PRINTF(f, a) __attribute__((__format__(__printf__, f, a))) |
47 | #else | 47 | #else |
48 | #define GNU_PRINTF | 48 | #define GNU_PRINTF(f, a) |
49 | #endif | 49 | #endif |
50 | 50 | ||
51 | #endif /* CCOMPAT_H */ | 51 | #endif /* CCOMPAT_H */ |