Commit 0c0ef339 authored by Christoph Mallon's avatar Christoph Mallon

panic: Add the macro TODO(node).

It prints the given node along the word TODO as panic message.
This is useful for unfinished development work.
parent 72cfb019
......@@ -21,4 +21,6 @@ FIRM_NORETURN print_panic(char const *file, int line, char const *func,
#define panic(...) print_panic(__FILE__, __LINE__, __func__, __VA_ARGS__)
#define TODO(node) panic("%+F: TODO", node)
# endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment