From e92c9c1eb410f39f55fd80c8895b545902406ea7 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Thu, 19 Mar 2026 23:06:55 +0300 Subject: Add macros for errors and todos, outline priority_queue.c --- error.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 error.h (limited to 'error.h') diff --git a/error.h b/error.h new file mode 100644 index 0000000..3bb74ed --- /dev/null +++ b/error.h @@ -0,0 +1,10 @@ +#ifndef ERROR_H_ +#define ERROR_H_ + +#include + +/* 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_ */ -- cgit v1.2.3