summaryrefslogtreecommitdiffstats
path: root/zix/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'zix/common.h')
-rw-r--r--zix/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/zix/common.h b/zix/common.h
index f0737eb..e427885 100644
--- a/zix/common.h
+++ b/zix/common.h
@@ -52,6 +52,12 @@ extern "C" {
# include <stdbool.h>
#endif
+#ifdef __GNUC__
+#define ZIX_LOG_FUNC(fmt, arg1) __attribute__((format(printf, fmt, arg1)))
+#else
+#define ZIX_LOG_FUNC(fmt, arg1)
+#endif
+
// Unused parameter macro to suppresses warnings and make it impossible to use
#if defined(__cplusplus)
# define ZIX_UNUSED(name)