From 7bf7326d0bbfc4bea634f8ef0af15d5ac7464542 Mon Sep 17 00:00:00 2001 From: "wjia@webrtc.org" Date: Fri, 22 Feb 2013 00:54:58 +0000 Subject: [PATCH] Remove WEBRTC_TRACE completely when tracing is disabled. This will help to cut the code size since those logging messages are removed. Contributed by Henrik Ellner. Review URL: https://webrtc-codereview.appspot.com/1125004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3560 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/system_wrappers/interface/trace.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webrtc/system_wrappers/interface/trace.h b/webrtc/system_wrappers/interface/trace.h index a1358fab0..92bacf312 100644 --- a/webrtc/system_wrappers/interface/trace.h +++ b/webrtc/system_wrappers/interface/trace.h @@ -19,7 +19,11 @@ #include "webrtc/common_types.h" #include "webrtc/typedefs.h" +#if !defined(WEBRTC_LOGGING) +#define WEBRTC_TRACE (true) ? (void)0 : Trace::Add +#else #define WEBRTC_TRACE Trace::Add +#endif namespace webrtc {