aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/common.h')
-rw-r--r--FICS/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/FICS/common.h b/FICS/common.h
index 14a10b2..4813359 100644
--- a/FICS/common.h
+++ b/FICS/common.h
@@ -41,6 +41,12 @@
#define ARRAY_SIZE(_a) (sizeof((_a)) / sizeof((_a)[0]))
+#ifdef __GNUC__
+#define PRINTFLIKE(arg_no) __attribute__((format(printf, arg_no, arg_no + 1)))
+#else
+#define PRINTFLIKE(arg_no)
+#endif
+
#ifdef DEBUG
#define ASSERT(expression) \
((void) ((expression)||_assert_error(__FILE__, __LINE__)))