summaryrefslogtreecommitdiff
path: root/error.h
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-12-27 21:21:54 +1300
committerDavid Phillips <david@sighup.nz>2017-12-27 21:21:54 +1300
commitf23abfdde683aee4b808f2795af1a1418125156c (patch)
treef6faf313a32395b41ca4db628ef2eb4d4d950c1f /error.h
downloadhence-f23abfdde683aee4b808f2795af1a1418125156c.tar.xz
Initual dump of partial work on parser and data structure
Diffstat (limited to 'error.h')
-rw-r--r--error.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/error.h b/error.h
new file mode 100644
index 0000000..e4f5351
--- /dev/null
+++ b/error.h
@@ -0,0 +1,4 @@
+#include <stdio.h>
+
+#define emit_error(...) fprintf(stderr, "Error: " __VA_ARGS__)
+#define emit_info(...) fprintf(stdout, "Info : " __VA_ARGS__)