blob: 3bb74edd196fb4953b4735863f7cb09ed1a4ef5e (
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(__FILE__ ": %i", __LINE__); printf(": " __VA_ARGS__); exit(1); }
#define todo() { endwin(); printf(__FILE__": %i: Not yet implemented\n", __LINE__); exit(1); }
#endif /* ERROR_H_ */
|