commonservices/activitymanager/src/activitymanagerdebug.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:53:00 +0200
changeset 0 4e1aa6a622a0
permissions -rw-r--r--
Revision: 201003

// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#ifndef ACTIVITYMANAGERDEBUG_H
#define ACTIVITYMANAGERDEBUG_H

#include <e32debug.h>

// Make sure release builds get a warning if 
#ifndef _DEBUG
#if (defined SYMBIAN_BAFL_ACTIVITYMANAGER_TRACE)
#warning "Use of RDebug::Print tracing in a release build, check MMP files"
#endif
#endif


//
// MACROs for trace statements in client/server code.
//

#ifdef SYMBIAN_BAFL_ACTIVITYMANAGER_TRACE

#define __ACTIVITYMANAGER_TRACE(_text)		RDebug::Print(_L(_text))
#define __ACTIVITYMANAGER_TRACE1(_text, _a1)	RDebug::Print(_L(_text), (_a1))
#define __ACTIVITYMANAGER_TRACE2(_text, _a1, _a2)	RDebug::Print(_L(_text), (_a1), (_a2))
#define __ACTIVITYMANAGER_TRACE3(_text, _a1, _a2, _a3)	RDebug::Print(_L(_text), (_a1), (_a2), (_a3))
#define __ACTIVITYMANAGER_TRACE4(_text, _a1, _a2, _a3, _a4)	RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4))
#define __ACTIVITYMANAGER_TRACE5(_text, _a1, _a2, _a3, _a4, _a5)	RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4), (_a5))
#define __ACTIVITYMANAGER_TRACE6(_text, _a1, _a2, _a3, _a4, _a5, _a6)	RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4), (_a5), (_a6))

#else

#define __ACTIVITYMANAGER_TRACE(_text)			
#define __ACTIVITYMANAGER_TRACE1(_text, _a1)		
#define __ACTIVITYMANAGER_TRACE2(_text, _a1, _a2)
#define __ACTIVITYMANAGER_TRACE3(_text, _a1, _a2, _a3)	
#define __ACTIVITYMANAGER_TRACE4(_text, _a1, _a2, _a3, _a4)
#define __ACTIVITYMANAGER_TRACE5(_text, _a1, _a2, _a3, _a4, _a5)
#define __ACTIVITYMANAGER_TRACE6(_text, _a1, _a2, _a3, _a4, _a5, _a6)

#endif

// Declarations to support panics in production code
_LIT(KCUserActivityManager,"CUserActivityMan");
#define UAM_PANIC(p) User::Panic(KCUserActivityManager,(p))


#endif // ACTIVITYMANAGERDEBUG_H