summaryrefslogtreecommitdiff
path: root/tracelog.h
diff options
context:
space:
mode:
Diffstat (limited to 'tracelog.h')
-rw-r--r--tracelog.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tracelog.h b/tracelog.h
new file mode 100644
index 0000000..cee85d4
--- /dev/null
+++ b/tracelog.h
@@ -0,0 +1,17 @@
+//
+// Created by Keuin on 2022/4/16.
+//
+
+#ifndef RT_TRACELOG_H
+#define RT_TRACELOG_H
+
+// log ray traces to stderr
+//#define LOG_TRACE
+
+#ifdef LOG_TRACE
+#define TRACELOG(...) (fprintf(stderr, __VA_ARGS__))
+#else
+#define TRACELOG(...)
+#endif
+
+#endif //RT_TRACELOG_H