aboutsummaryrefslogtreecommitdiffstats
path: root/include/rin/definitions.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rin/definitions.h')
-rw-r--r--include/rin/definitions.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/rin/definitions.h b/include/rin/definitions.h
index 19dde14..b8b6da3 100644
--- a/include/rin/definitions.h
+++ b/include/rin/definitions.h
@@ -26,6 +26,12 @@
/* weak symbols */
# define WEAK_SYM __attribute__((weak))
+
+/* allow the compiler to check varargs */
+/*
+# define FORMAT_STRING(a, b) __attribute__((format (printf, a, b)))
+*/
+
/* optimizing likely / unlikely branches */
# define likely(a) (__builtin_expect(!!(a), 1))
# define unlikely(a) (__builtin_expect((a), 0))
@@ -35,6 +41,9 @@
/* weak symbols */
# define WEAK_SYM __declspec(selectany)
+
+# define FORMAT_STRING(a, b)
+
/* optimizing likely / unlikely branches */
# define likely(a) (a)
# define unlikely(a) (a)
@@ -42,6 +51,7 @@
/* the rest – NOOP */
#else
# define WEAK_SYM
+# define FORMAT_STRING(a, b)
# define likely(a) (a)
# define unlikely(a) (a)
#endif