1 #ifndef _NOTMUCH_TEST_H 2 #define _NOTMUCH_TEST_H 3 #include <stdio.h> 4 #include <stdlib.h> 5 #include <notmuch.h> 6 7 inline static void expect0(int line,notmuch_status_t ret)8expect0 (int line, notmuch_status_t ret) 9 { 10 if (ret) { 11 fprintf (stderr, "line %d: %d\n", line, ret); 12 exit (1); 13 } 14 } 15 16 #define EXPECT0(v) expect0 (__LINE__, v); 17 #endif 18