From fce0f37d4ae37be2c6847cc61547fb8b5283b22c Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Tue, 15 Apr 2003 15:28:38 +0000 Subject: [PATCH] INTEGRATION: CWS dbgmacros1 (1.3.72); FILE MERGED 2003/04/09 10:15:44 kso 1.3.72.1: #108413# - debug macro unification. --- bridges/source/remote/static/remote.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bridges/source/remote/static/remote.cxx b/bridges/source/remote/static/remote.cxx index 47fc9384476a..266defb0f927 100644 --- a/bridges/source/remote/static/remote.cxx +++ b/bridges/source/remote/static/remote.cxx @@ -2,9 +2,9 @@ * * $RCSfile: remote.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jbu $ $Date: 2000-11-28 14:34:12 $ + * last change: $Author: vg $ $Date: 2003-04-15 16:28:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -58,12 +58,15 @@ * * ************************************************************************/ +#if OSL_DEBUG_LEVEL == 0 +#define NDEBUG +#endif #include #include #include -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 static MyCounter thisCounter( "DEBUG : Remote2RemoteStub"); #endif @@ -86,7 +89,7 @@ Remote2RemoteStub::Remote2RemoteStub( rtl_uString *pOid, acquire = thisAcquire; release = thisRelease; pDispatcher = thisDispatch; -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 thisCounter.acquire(); #endif } @@ -128,7 +131,7 @@ Remote2RemoteStub::~Remote2RemoteStub() typelib_typedescription_release( (typelib_TypeDescription * ) m_pType ); m_pEnvRemote->release( m_pEnvRemote ); -#ifdef DEBUG +#if OSL_DEBUG_LEVEL > 1 thisCounter.release(); #endif }