chiark / gitweb /
utils/macros.h: Support for compiler-specific annotations.
[mLib] / trace / trace.h
index 77e5ed4989450d239f38223d57e2a41f0b74c9a7..a7edc37d6790baba6e07e95cdcdc03b38caa6a2c 100644 (file)
 
 #include <stdio.h>
 
+#ifndef MLIB_MACROS_H
+#  include "macros.h"
+#endif
+
 /*----- Data structures ---------------------------------------------------*/
 
 typedef struct trace_opt {
@@ -57,7 +61,8 @@ typedef struct trace_opt {
  * Use:                Reports a message to the trace output.
  */
 
-extern void trace(unsigned /*l*/, const char */*f*/, ...);
+extern void PRINTF_LIKE(2, 3)
+  trace(unsigned /*l*/, const char */*f*/, ...);
 
 /* --- @trace_block@ --- *
  *