From db5c9867e2ffde3657f53bc155b474c5d46884dd Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 17 Feb 2018 23:29:34 +0100 Subject: Core/Misc: Add PERFORMANCE_PROFILING CMake option Add a new CMake option called PERFORMANCE_PROFILING that should be used only when profiling the performance. This option is unsupported, do not report any issue happening when enabling this option. --- src/common/Logging/Log.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/common/Logging/Log.h') diff --git a/src/common/Logging/Log.h b/src/common/Logging/Log.h index 740ffaf03c9..6af294e1321 100644 --- a/src/common/Logging/Log.h +++ b/src/common/Logging/Log.h @@ -144,7 +144,9 @@ class TC_COMMON_API Log } \ } -#if TRINITY_PLATFORM != TRINITY_PLATFORM_WINDOWS +#ifdef PERFORMANCE_PROFILING +#define TC_LOG_MESSAGE_BODY(filterType__, level__, ...) ((void)0) +#elif TRINITY_PLATFORM != TRINITY_PLATFORM_WINDOWS void check_args(char const*, ...) ATTR_PRINTF(1, 2); void check_args(std::string const&, ...); -- cgit v1.2.3