summaryrefslogtreecommitdiffstats
path: root/src/log.h
blob: dd2835c9ada338847538ff8f82e8a480b390ef14 (plain)
1
2
3
4
5
6
7
8
#pragma once

#include <stdlib.h>

#define FATAL(msg, ...) do { \
	fprintf(stderr, "%s:%d:FATAL: " msg "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
	abort(); \
}while(0)