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
This commit is contained in:
wjia@webrtc.org 2013-02-22 00:54:58 +00:00
parent 10987a851d
commit 7bf7326d0b

View File

@ -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 {