]> diplodocus.org Git - nmh/blobdiff - h/mh.h
Reformat else-if that are split over two or more lines into one.
[nmh] / h / mh.h
diff --git a/h/mh.h b/h/mh.h
index d3c37c72b86894c1f1ec148a5b795c284517e902..dda0c3d245ca420b2193b54fb1e4689dd609b9a9 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
 #endif
 typedef unsigned char  boolean;  /* not int so we can pack in a structure */
 
-/* If we're using gcc then give it some information about
- * functions that abort.
- */
+/* If we're using gcc then tell it extra information so it can do more
+ * compile-time checks. */
 #if __GNUC__ > 2
 #define NORETURN __attribute__((__noreturn__))
+#define CHECK_PRINTF(fmt, arg) __attribute__((format(printf, fmt, arg)))
 #define NMH_UNUSED(i) (void) i
 #else
 #define NORETURN
+#define CHECK_PRINTF(fmt, arg)
 #define NMH_UNUSED(i) i
 #endif