aboutsummaryrefslogtreecommitdiff
path: root/include/util.h
blob: b6c64e00e6405e00d1b9e59a2878b19cfcb4de32 (plain) (blame)
1
2
3
4
5
6
7
8
#include <stdio.h>

#define err_die(r, ...) {\
	fprintf(stderr, "%s:%d: ", __FILE__, __LINE__); \
	fprintf(stderr, __VA_ARGS__); \
	fputc('\n', stderr); \
	return r; \
}