aboutsummaryrefslogtreecommitdiff
path: root/err.h
diff options
context:
space:
mode:
Diffstat (limited to 'err.h')
-rw-r--r--err.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/err.h b/err.h
new file mode 100644
index 00000000..d3db805c
--- /dev/null
+++ b/err.h
@@ -0,0 +1,7 @@
+#ifndef ERR_H
+#define ERR_H
+
+#include <stdio.h>
+#define ERR(s) fprintf(stderr, "ERR (%s:%i): %s\n", __FILE__, __LINE__, s)
+
+#endif /* ERR_H */