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:
parent
10987a851d
commit
7bf7326d0b
@ -19,7 +19,11 @@
|
|||||||
#include "webrtc/common_types.h"
|
#include "webrtc/common_types.h"
|
||||||
#include "webrtc/typedefs.h"
|
#include "webrtc/typedefs.h"
|
||||||
|
|
||||||
|
#if !defined(WEBRTC_LOGGING)
|
||||||
|
#define WEBRTC_TRACE (true) ? (void)0 : Trace::Add
|
||||||
|
#else
|
||||||
#define WEBRTC_TRACE Trace::Add
|
#define WEBRTC_TRACE Trace::Add
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user