summaryrefslogtreecommitdiff
path: root/util.h
blob: 076393e7526076792b3e4defc2101ce7b3f6771f (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__); putchar('\n'); exit(1); } } while(0)
#define ERROR(...) CHECK(false, __VA_ARGS__)



#endif