summaryrefslogtreecommitdiff
path: root/code/core/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/core/log.h')
-rw-r--r--code/core/log.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/code/core/log.h b/code/core/log.h
new file mode 100644
index 0000000..57fb21b
--- /dev/null
+++ b/code/core/log.h
@@ -0,0 +1,7 @@
+#ifndef LOG_H
+#define LOG_H
+
+#define WARN(str) fprintf(stderr, "WARN at " __FILE__ ":%d: " str "\n", __LINE__, str);
+#define DIE(str) { fprintf(stderr, "FATAL at " __FILE__ ":%d: " str "\n", __LINE__, str); exit(-1); }
+
+#endif
contact: Jan Huwald // Impressum