aboutsummaryrefslogtreecommitdiff
path: root/error.h
blob: 59237036d30b9242e07465a54212156ba15d39fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#ifndef ERROR_H_
#define ERROR_H_

#include <stdlib.h>

/* Clean up and exit, printing a message */
#define error(...) { endwin(); printf("\033[?1003l\n"); printf(__FILE__ ": %i", __LINE__); printf(": " __VA_ARGS__); exit(EXIT_FAILURE); }
#define todo() { endwin(); printf("\033[?1003l\n"); printf(__FILE__": %i: Not yet implemented\n", __LINE__); exit(EXIT_FAILURE); }

#endif /* ERROR_H_ */