output.h

changeset 81
ebefcbcb126f
parent 58
789df543d0c3
--- a/output.h	Sat Jul 31 21:12:01 2004 +0200
+++ b/output.h	Wed Oct 06 18:24:41 2004 +0200
@@ -14,6 +14,14 @@
 
 #include "types.h"
 
+#if __STDC_VERSION__ >= 199901L
+#define WARN_FUNC(...) warn_obj(__func__, __VA_ARGS__)
+#define WARN_ERR_FUNC() warn_err_obj(__func__)
+#else
+#define WARN_FUNC warn
+#define WARN_ERR_FUNC() warn_err()
+#endif
+
 typedef void WarnHandler(const char *);
 extern WarnHandler *set_warn_handler(WarnHandler *handler);
 

mercurial