diff options
Diffstat (limited to 'intern/cycles/util/util_logging.h')
-rw-r--r-- | intern/cycles/util/util_logging.h | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/intern/cycles/util/util_logging.h b/intern/cycles/util/util_logging.h index f66d7c92dcc..1a5e6666b32 100644 --- a/intern/cycles/util/util_logging.h +++ b/intern/cycles/util/util_logging.h @@ -28,25 +28,31 @@ CCL_NAMESPACE_BEGIN #if !defined(WITH_CYCLES_LOGGING) || defined(__KERNEL_GPU__) class StubStream { -public: - template<class T> - StubStream& operator<<(const T&) { - return *this; - } + public: + template<class T> StubStream &operator<<(const T &) + { + return *this; + } }; class LogMessageVoidify { -public: - LogMessageVoidify() { } - void operator&(StubStream&) { } + public: + LogMessageVoidify() + { + } + void operator&(StubStream &) + { + } }; -# define LOG_SUPPRESS() (true) ? ((void) 0) : LogMessageVoidify() & StubStream() +# define LOG_SUPPRESS() (true) ? ((void)0) : LogMessageVoidify() & StubStream() # define LOG(severity) LOG_SUPPRESS() # define VLOG(severity) LOG_SUPPRESS() #endif -#define VLOG_ONCE(level, flag) if(!flag) flag = true, VLOG(level) +#define VLOG_ONCE(level, flag) \ + if (!flag) \ + flag = true, VLOG(level) struct int2; struct float3; @@ -55,11 +61,9 @@ void util_logging_init(const char *argv0); void util_logging_start(); void util_logging_verbosity_set(int verbosity); -std::ostream& operator <<(std::ostream &os, - const int2 &value); -std::ostream& operator <<(std::ostream &os, - const float3 &value); +std::ostream &operator<<(std::ostream &os, const int2 &value); +std::ostream &operator<<(std::ostream &os, const float3 &value); CCL_NAMESPACE_END -#endif /* __UTIL_LOGGING_H__ */ +#endif /* __UTIL_LOGGING_H__ */ |