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

#include <stdio.h>
#include <stdlib.h>

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



#endif