mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 20:38:08 +01:00
bdc87f0d3e
This is the result of running: $ uncrustify --replace --config ../devel/uncrustify.cfg *.cc *.c *.h in the test directory. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
16 lines
283 B
C
16 lines
283 B
C
#ifndef _NOTMUCH_TEST_H
|
|
#define _NOTMUCH_TEST_H
|
|
#include <stdio.h>
|
|
#include <notmuch.h>
|
|
|
|
inline static void
|
|
expect0 (int line, notmuch_status_t ret)
|
|
{
|
|
if (ret) {
|
|
fprintf (stderr, "line %d: %d\n", line, ret);
|
|
exit (1);
|
|
}
|
|
}
|
|
|
|
#define EXPECT0(v) expect0 (__LINE__, v);
|
|
#endif
|