|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Trace macro definitions file |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PSMTRACE_H |
|
19 #define PSMTRACE_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32svr.h> |
|
23 |
|
24 // PC-LINT OPTIONS |
|
25 // Removes null statement not in line by itself warnings from |
|
26 // COMPONENT_TRACE macros |
|
27 //lint -esym(960,54) |
|
28 |
|
29 // Removes "area too small" pointer cast warnings. |
|
30 //lint -e826 |
|
31 |
|
32 /** |
|
33 * "NULL" string for tracing |
|
34 */ |
|
35 _LIT( KSensrvNullString, "NULL"); |
|
36 |
|
37 |
|
38 #ifdef _DEBUG |
|
39 |
|
40 #define THREAD_TRACE |
|
41 |
|
42 #ifdef COMPONENT_TRACE_FLAG |
|
43 |
|
44 #define COMPONENT_TRACE( a ) THREAD_TRACE;RDebug::Print a |
|
45 #define COMPONENT_TRACE_DEBUG |
|
46 |
|
47 #else // #ifdef COMPONENT_TRACE_FLAG |
|
48 |
|
49 #define COMPONENT_TRACE( a ) |
|
50 |
|
51 #endif //#ifdef COMPONENT_TRACE_FLAG |
|
52 |
|
53 #ifdef ERROR_TRACE_FLAG |
|
54 |
|
55 #define ERROR_TRACE( a ) THREAD_TRACE;RDebug::Print a |
|
56 #define ERROR_TRACE_DEBUG |
|
57 |
|
58 #else //#ifdef ERROR_TRACE_FLAG |
|
59 |
|
60 #define ERROR_TRACE( a ) |
|
61 |
|
62 #endif //#ifdef ERROR_TRACE_FLAG |
|
63 |
|
64 #ifdef MEMORY_TRACE_FLAG |
|
65 |
|
66 #define MEMORY_TRACE( a ) THREAD_TRACE;RDebug::Print a |
|
67 #define MEMORY_TRACE_DEBUG |
|
68 |
|
69 #else //#ifdef MEMORY_TRACE_FLAG |
|
70 |
|
71 #define MEMORY_TRACE( a ) |
|
72 |
|
73 #endif //#ifdef MEMORY_TRACE_FLAG |
|
74 |
|
75 #else // #ifdef _DEBUG |
|
76 |
|
77 #define COMPONENT_TRACE( a ) |
|
78 #define ERROR_TRACE( a ) |
|
79 #define THREAD_TRACE |
|
80 #define MEMORY_TRACE( a ) |
|
81 |
|
82 #endif //#ifdef _DEBUG |
|
83 |
|
84 #endif // PSMTRACE_H |
|
85 |
|
86 |
|
87 // End of File |
|
88 |