summaryrefslogtreecommitdiff
path: root/util.h
blob: 7cbfa4488e09568921022ae8e951685e9d3eeac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef _util_h
#define _util_h

#include <stdio.h>

#define CHECK(cond, ...) do { if (!(cond)) { fprintf(stderr, __VA_ARGS__); exit(1); } } while(0)
#define ERROR(...) CHECK(false, __VA_ARGS__)



#endif