]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-client.h
cli/dump: define GZPUTS and use it in notmuch-dump
[notmuch] / notmuch-client.h
index 6cb8182090241b43d11749d3e45aab3fcbc286c8..ebd43e8d296ec775808f527b757b73c137528235 100644 (file)
@@ -500,6 +500,7 @@ print_status_gzbytes (const char *loc,
 /* the __location__ macro is defined in talloc.h */
 #define ASSERT_GZBYTES(file, bytes) ((print_status_gzbytes (__location__, file, bytes)) ? exit (1) : 0)
 #define GZPRINTF(file, fmt, ...) ASSERT_GZBYTES (file, gzprintf (file, fmt, ##__VA_ARGS__));
+#define GZPUTS(file, str) ASSERT_GZBYTES(file, gzputs (file, str));
 
 #include "command-line-arguments.h"