|
1 // Copyright (c) 2007-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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef ACTIVITYMANAGERDEBUG_H |
|
17 #define ACTIVITYMANAGERDEBUG_H |
|
18 |
|
19 #include <e32debug.h> |
|
20 |
|
21 // Make sure release builds get a warning if |
|
22 #ifndef _DEBUG |
|
23 #if (defined SYMBIAN_BAFL_ACTIVITYMANAGER_TRACE) |
|
24 #warning "Use of RDebug::Print tracing in a release build, check MMP files" |
|
25 #endif |
|
26 #endif |
|
27 |
|
28 |
|
29 // |
|
30 // MACROs for trace statements in client/server code. |
|
31 // |
|
32 |
|
33 #ifdef SYMBIAN_BAFL_ACTIVITYMANAGER_TRACE |
|
34 |
|
35 #define __ACTIVITYMANAGER_TRACE(_text) RDebug::Print(_L(_text)) |
|
36 #define __ACTIVITYMANAGER_TRACE1(_text, _a1) RDebug::Print(_L(_text), (_a1)) |
|
37 #define __ACTIVITYMANAGER_TRACE2(_text, _a1, _a2) RDebug::Print(_L(_text), (_a1), (_a2)) |
|
38 #define __ACTIVITYMANAGER_TRACE3(_text, _a1, _a2, _a3) RDebug::Print(_L(_text), (_a1), (_a2), (_a3)) |
|
39 #define __ACTIVITYMANAGER_TRACE4(_text, _a1, _a2, _a3, _a4) RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4)) |
|
40 #define __ACTIVITYMANAGER_TRACE5(_text, _a1, _a2, _a3, _a4, _a5) RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4), (_a5)) |
|
41 #define __ACTIVITYMANAGER_TRACE6(_text, _a1, _a2, _a3, _a4, _a5, _a6) RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4), (_a5), (_a6)) |
|
42 |
|
43 #else |
|
44 |
|
45 #define __ACTIVITYMANAGER_TRACE(_text) |
|
46 #define __ACTIVITYMANAGER_TRACE1(_text, _a1) |
|
47 #define __ACTIVITYMANAGER_TRACE2(_text, _a1, _a2) |
|
48 #define __ACTIVITYMANAGER_TRACE3(_text, _a1, _a2, _a3) |
|
49 #define __ACTIVITYMANAGER_TRACE4(_text, _a1, _a2, _a3, _a4) |
|
50 #define __ACTIVITYMANAGER_TRACE5(_text, _a1, _a2, _a3, _a4, _a5) |
|
51 #define __ACTIVITYMANAGER_TRACE6(_text, _a1, _a2, _a3, _a4, _a5, _a6) |
|
52 |
|
53 #endif |
|
54 |
|
55 // Declarations to support panics in production code |
|
56 _LIT(KCUserActivityManager,"CUserActivityMan"); |
|
57 #define UAM_PANIC(p) User::Panic(KCUserActivityManager,(p)) |
|
58 |
|
59 |
|
60 #endif // ACTIVITYMANAGERDEBUG_H |
|
61 |