diff options
author | Keuin <[email protected]> | 2022-04-16 19:08:28 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-04-16 19:08:28 +0800 |
commit | 60d8221109304bc4f207dda8a42623cae488af5d (patch) | |
tree | 5f4c59a81d58d14666226ee1f7da5299db98f9f5 /tracelog.h | |
parent | 52d11df35ca9846085b910e2e40434b48847d9d8 (diff) |
Move trace logging to tracelog.h.
Pixel-wise, comprehensive, beautiful trace logging.
Diffstat (limited to 'tracelog.h')
-rw-r--r-- | tracelog.h | 17 |
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 |