Update contrib.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 // MACROs for trace statements in client/server code.
27 #define __CENTREP_TRACE(_text) RDebug::Print(_L(_text))
28 #define __CENTREP_TRACE1(_text, _a1) RDebug::Print(_L(_text), (_a1))
29 #define __CENTREP_TRACE2(_text, _a1, _a2) RDebug::Print(_L(_text), (_a1), (_a2))
30 #define __CENTREP_TRACE3(_text, _a1, _a2, _a3) RDebug::Print(_L(_text), (_a1), (_a2), (_a3))
34 #define __CENTREP_TRACE(_text)
35 #define __CENTREP_TRACE1(_text, _a1)
36 #define __CENTREP_TRACE2(_text, _a1, _a2)
37 #define __CENTREP_TRACE3(_text, _a1, _a2, _a3)
41 // macro for trace statements of just the server subsession
42 // note: this is needed for greater granularity than the centrep_trace macro
46 #ifdef SRVSUBSESS_TRACE
48 #define __SRVSUBSESS_TRACE(_text) RDebug::Print(_L(_text))
49 #define __SRVSUBSESS_TRACE1(_text, _a1) RDebug::Print(_L(_text), (_a1))
50 #define __SRVSUBSESS_TRACE2(_text, _a1, _a2) RDebug::Print(_L(_text), (_a1), (_a2))
51 #define __SRVSUBSESS_TRACE3(_text, _a1, _a2, _a3) RDebug::Print(_L(_text), (_a1), (_a2), (_a3))
52 #define __SRVSUBSESS_TRACE4(_text, _a1, _a2, _a3, _a4) RDebug::Print(_L(_text), (_a1), (_a2), (_a3),(_a4))
56 #define __SRVSUBSESS_TRACE(_text)
57 #define __SRVSUBSESS_TRACE1(_text, _a1)
58 #define __SRVSUBSESS_TRACE2(_text, _a1, _a2)
59 #define __SRVSUBSESS_TRACE3(_text, _a1, _a2, _a3)
60 #define __SRVSUBSESS_TRACE4(_text, _a1, _a2, _a3, _a4)
65 #endif // CENTREP_LOG_H