summaryrefslogtreecommitdiffhomepage
path: root/ir/common
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2017-01-22 11:46:32 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2017-01-22 11:46:32 +0100
commit0c0ef339c06a1b27dbfbedfb09653bea5a3639c7 (patch)
tree862783750b9261febab06e3f6a4d70fd3e50eed1 /ir/common
parent72cfb0190064805d3a797f32d13aa5e6472be40c (diff)
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.
Diffstat (limited to 'ir/common')
-rw-r--r--ir/common/panic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/common/panic.h b/ir/common/panic.h
index 5c06586..0bc8c91 100644
--- a/ir/common/panic.h
+++ b/ir/common/panic.h
@@ -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