From 60d8221109304bc4f207dda8a42623cae488af5d Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 16 Apr 2022 19:08:28 +0800 Subject: Move trace logging to tracelog.h. Pixel-wise, comprehensive, beautiful trace logging. --- tracelog.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tracelog.h (limited to 'tracelog.h') 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 -- cgit v1.2.3