output.h

changeset 81
ebefcbcb126f
parent 58
789df543d0c3
equal deleted inserted replaced
80:c60bc05a6d38 81:ebefcbcb126f
11 #define LIBTU_OUTPUT_H 11 #define LIBTU_OUTPUT_H
12 12
13 #include <stdarg.h> 13 #include <stdarg.h>
14 14
15 #include "types.h" 15 #include "types.h"
16
17 #if __STDC_VERSION__ >= 199901L
18 #define WARN_FUNC(...) warn_obj(__func__, __VA_ARGS__)
19 #define WARN_ERR_FUNC() warn_err_obj(__func__)
20 #else
21 #define WARN_FUNC warn
22 #define WARN_ERR_FUNC() warn_err()
23 #endif
16 24
17 typedef void WarnHandler(const char *); 25 typedef void WarnHandler(const char *);
18 extern WarnHandler *set_warn_handler(WarnHandler *handler); 26 extern WarnHandler *set_warn_handler(WarnHandler *handler);
19 27
20 extern void verbose(const char *p, ...); 28 extern void verbose(const char *p, ...);

mercurial