From c83cf9197d6d15ef416c0ba2688c09cb11aa1e3c Mon Sep 17 00:00:00 2001 From: kipp Date: Mon, 13 Jul 1998 21:32:26 +0000 Subject: [PATCH] Fixed tracing macro bug --- webshell/src/nsWebWidget.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/webshell/src/nsWebWidget.cpp b/webshell/src/nsWebWidget.cpp index f298e7fecd78..af8ea3ae189f 100644 --- a/webshell/src/nsWebWidget.cpp +++ b/webshell/src/nsWebWidget.cpp @@ -156,21 +156,21 @@ private: * means that you cannot perform logging before then. */ static PRLogModuleInfo* gLogModule = PR_NewLogModule("webwidget"); +#ifndef prlog_h___ +vc++ is buggy; +#endif #endif #define WEB_TRACE_CALLS 0x1 -#define WEB_TRACE_PUSH_PULL 0x2 -#define WEB_TRACE_CHILD_REFLOW 0x4 -#define WEB_TRACE_NEW_FRAMES 0x8 #define WEB_LOG_TEST(_lm,_bit) (PRIntn((_lm)->level) & (_bit)) #ifdef NS_DEBUG -#define WEB_TRACE(_bit,_args) \ - PR_BEGIN_MACRO \ - if (WEB_LOG_TEST(nsIFrame::GetLogModuleInfo(),_bit)) { \ - PR_LogPrint _args; \ - } \ +#define WEB_TRACE(_bit,_args) \ + PR_BEGIN_MACRO \ + if (WEB_LOG_TEST(gLogModule,_bit)) { \ + PR_LogPrint _args; \ + } \ PR_END_MACRO #else #define WEB_TRACE(_bit,_args)