chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils/macros.h: Support for compiler-specific annotations.
[mLib]
/
trace
/
trace.h
diff --git
a/trace/trace.h
b/trace/trace.h
index 77e5ed4989450d239f38223d57e2a41f0b74c9a7..a7edc37d6790baba6e07e95cdcdc03b38caa6a2c 100644
(file)
--- a/
trace/trace.h
+++ b/
trace/trace.h
@@
-36,6
+36,10
@@
#include <stdio.h>
#include <stdio.h>
+#ifndef MLIB_MACROS_H
+# include "macros.h"
+#endif
+
/*----- Data structures ---------------------------------------------------*/
typedef struct trace_opt {
/*----- Data structures ---------------------------------------------------*/
typedef struct trace_opt {
@@
-57,7
+61,8
@@
typedef struct trace_opt {
* Use: Reports a message to the trace output.
*/
* 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@ --- *
*
/* --- @trace_block@ --- *
*