Added compile time support for direct tracing.

Review URL: https://webrtc-codereview.appspot.com/469006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1985 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
pwestin@webrtc.org 2012-04-04 08:08:30 +00:00
parent 06e722ae77
commit 27fe1b702e

View File

@ -429,8 +429,14 @@ WebRtc_Word32 TraceImpl::AddMessage(
void TraceImpl::AddMessageToList(
const char traceMessage[WEBRTC_TRACE_MAX_MESSAGE_SIZE],
const WebRtc_UWord16 length,
const TraceLevel level)
{
const TraceLevel level) {
#ifdef WEBRTC_DIRECT_TRACE
if (_callback) {
_callback->Print(level, traceMessage, length);
}
return;
#endif
CriticalSectionScoped lock(_critsectArray);
if(_nextFreeIdx[_activeQueue] >= WEBRTC_TRACE_MAX_QUEUE)