sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef ECOM_DEBUG_H sl@0: #define ECOM_DEBUG_H sl@0: sl@0: #include sl@0: #include sl@0: sl@0: // Make sure release builds get a warning if sl@0: #ifndef _DEBUG sl@0: #if (defined ECOM_TRACE) sl@0: #warning "Use of RDebug::Print tracing in a release build, check MMP files" sl@0: #endif sl@0: #endif sl@0: sl@0: // Panic category string for client DLL panics, see ecompanic.h sl@0: _LIT(KEComClientDLLPanicCategory, "ECOMClientDLL"); sl@0: sl@0: // Panic category string for server panics, see ecompanic.h sl@0: _LIT(KEComServerPanicCategory, "ECOMServer"); sl@0: sl@0: // sl@0: // MACROs for log statements in client/server code. sl@0: // sl@0: sl@0: #define __ECOM_LOG(_text) RDebug::Print(_L(_text)) sl@0: #define __ECOM_LOG1(_text, _a1) RDebug::Print(_L(_text), (_a1)) sl@0: sl@0: // sl@0: // MACROs for trace statements in client/server code. sl@0: // sl@0: sl@0: #ifdef ECOM_TRACE sl@0: sl@0: #define __ECOM_TRACE(_text) RDebug::Print(_L(_text)) sl@0: #define __ECOM_TRACE1(_text, _a1) RDebug::Print(_L(_text), (_a1)) sl@0: #define __ECOM_TRACE2(_text, _a1, _a2) RDebug::Print(_L(_text), (_a1), (_a2)) sl@0: #define __ECOM_TRACE3(_text, _a1, _a2, _a3) RDebug::Print(_L(_text), (_a1), (_a2), (_a3)) sl@0: #define __ECOM_TRACE4(_text, _a1, _a2, _a3, _a4) RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4)) sl@0: #define __ECOM_TRACE5(_text, _a1, _a2, _a3, _a4, _a5) RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4), (_a5)) sl@0: #define __ECOM_TRACE6(_text, _a1, _a2, _a3, _a4, _a5, _a6) RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4), (_a5), (_a6)) sl@0: sl@0: #else sl@0: sl@0: #define __ECOM_TRACE(_text) sl@0: #define __ECOM_TRACE1(_text, _a1) sl@0: #define __ECOM_TRACE2(_text, _a1, _a2) sl@0: #define __ECOM_TRACE3(_text, _a1, _a2, _a3) sl@0: #define __ECOM_TRACE4(_text, _a1, _a2, _a3, _a4) sl@0: #define __ECOM_TRACE5(_text, _a1, _a2, _a3, _a4, _a5) sl@0: #define __ECOM_TRACE6(_text, _a1, _a2, _a3, _a4, _a5, _a6) sl@0: sl@0: #endif sl@0: sl@0: sl@0: sl@0: sl@0: #endif // ECOM_DEBUG_H sl@0: