aboutsummaryrefslogtreecommitdiffstats
path: root/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'trace.h')
-rw-r--r--trace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/trace.h b/trace.h
index cef9927..8dee696 100644
--- a/trace.h
+++ b/trace.h
@@ -5,7 +5,15 @@
#ifndef PACK_TRACE_H
#define PACK_TRACE_H
+#ifdef DEVEL
+#define ATTRIBUTE_FORMAT(type, fmt, args) __attribute__((format(type, fmt, args)))
+#else
+#define ATTRIBUTE_FORMAT(type, fmt, args)
+#endif
+
+ATTRIBUTE_FORMAT(printf, 1, 2)
void tr_call(const char *fmt, ...);
+ATTRIBUTE_FORMAT(printf, 1, 2)
void tr_debug(const char *fmt, ...);
#endif // !PACK_TRACE_H