INTEGRATION: CWS dbgmacros1 (1.3.72); FILE MERGED

2003/04/09 10:15:44 kso 1.3.72.1: #108413# - debug macro unification.
This commit is contained in:
Vladimir Glazounov
2003-04-15 15:28:38 +00:00
parent 9d11fae984
commit fce0f37d4a

View File

@@ -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 <assert.h>
#include <bridges/remote/remote.hxx>
#include <bridges/remote/counter.hxx>
#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
}