blob: 71dd52a219cbb7c0c6bac827ace7f22e6e93aed0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//
// Created by Keuin on 2022/4/16.
//
#ifndef RT_TRACELOG_H
#define RT_TRACELOG_H
// log ray traces to stderr
// Note: please do not enable antialiasing if you wish to get a readable log.
// These logs are simply printed to stderr. Using antialiasing will run
// multiple render thread at the same time, which will mess up the log.
//#define LOG_TRACE
#ifdef LOG_TRACE
#define TRACELOG(...) (fprintf(stderr, __VA_ARGS__))
#else
#define TRACELOG(...)
#endif
#endif //RT_TRACELOG_H
|