|
1 // Copyright (c) 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 #ifndef SQLTRACEDEF_H |
|
16 #define SQLTRACEDEF_H |
|
17 |
|
18 #include <e32def.h> |
|
19 #include "SqlAssert.h" |
|
20 |
|
21 ////////////////////////////////////////////////////////////////////////////////////// |
|
22 |
|
23 #if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_BORDER_TRACE_ENABLED |
|
24 #define __SQLTRACE_BORDERVAR(var) var |
|
25 #define __SQLTRACE_BORDEREXPR(expr) expr |
|
26 #else |
|
27 #define __SQLTRACE_BORDERVAR(var) |
|
28 #define __SQLTRACE_BORDEREXPR(expr) |
|
29 #endif |
|
30 |
|
31 #if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_INTERNALS_TRACE_ENABLED |
|
32 #define __SQLTRACE_INTERNALSVAR(var) var |
|
33 #define __SQLTRACE_INTERNALSEXPR(expr) expr |
|
34 #else |
|
35 #define __SQLTRACE_INTERNALSVAR(var) |
|
36 #define __SQLTRACE_INTERNALSEXPR(expr) |
|
37 #endif |
|
38 |
|
39 #if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_BUR_TRACE_ENABLED |
|
40 #define __SQLTRACE_BURVAR(var) var |
|
41 #define __SQLTRACE_BUREXPR(expr) expr |
|
42 #else |
|
43 #define __SQLTRACE_BURVAR(var) |
|
44 #define __SQLTRACE_BUREXPR(expr) |
|
45 #endif |
|
46 |
|
47 #if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_COMPACT_TRACE_ENABLED |
|
48 #define __SQLTRACE_COMPACTVAR(var) var |
|
49 #define __SQLTRACE_COMPACTEXPR(expr) expr |
|
50 #else |
|
51 #define __SQLTRACE_COMPACTVAR(var) |
|
52 #define __SQLTRACE_COMPACTEXPR(expr) |
|
53 #endif |
|
54 |
|
55 #if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_SESSION_TRACE_ENABLED |
|
56 #define __SQLTRACE_SESSIONVAR(var) var |
|
57 #define __SQLTRACE_SESSIONEXPR(expr) expr |
|
58 #else |
|
59 #define __SQLTRACE_SESSIONVAR(var) |
|
60 #define __SQLTRACE_SESSIONEXPR(expr) |
|
61 #endif |
|
62 |
|
63 #if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_AUTHORIZER_TRACE_ENABLED |
|
64 #define __SQLTRACE_AUTHORIZERVAR(var) var |
|
65 #define __SQLTRACE_AUTHORIZEREXPR(expr) expr |
|
66 #else |
|
67 #define __SQLTRACE_AUTHORIZERVAR(var) |
|
68 #define __SQLTRACE_AUTHORIZEREXPR(expr) |
|
69 #endif |
|
70 |
|
71 #if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_BLOB_TRACE_ENABLED |
|
72 #define __SQLTRACE_BLOBVAR(var) var |
|
73 #define __SQLTRACE_BLOBEXPR(expr) expr |
|
74 #else |
|
75 #define __SQLTRACE_BLOBVAR(var) |
|
76 #define __SQLTRACE_BLOBEXPR(expr) |
|
77 #endif |
|
78 |
|
79 ////////////////////////////////////////////////////////////////////////////////////// |
|
80 |
|
81 #if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_RDEBUG_PRINT |
|
82 #undef OstTrace0 |
|
83 #undef OstTrace1 |
|
84 #undef OstTraceExt1 |
|
85 #undef OstTraceExt2 |
|
86 #undef OstTraceExt3 |
|
87 #undef OstTraceExt4 |
|
88 #undef OstTraceExt5 |
|
89 |
|
90 void SqlPrintf(TInt aGroupName, TInt aTraceName, const char* aFormat, ...); |
|
91 |
|
92 #define OstTrace0 SqlPrintf |
|
93 #define OstTrace1 SqlPrintf |
|
94 #define OstTraceExt1 SqlPrintf |
|
95 #define OstTraceExt2 SqlPrintf |
|
96 #define OstTraceExt3 SqlPrintf |
|
97 #define OstTraceExt4 SqlPrintf |
|
98 #define OstTraceExt5 SqlPrintf |
|
99 #endif//defined OST_TRACE_COMPILER_IN_USE && defined _SQL_RDEBUG_PRINT |
|
100 |
|
101 ////////////////////////////////////////////////////////////////////////////////////// |
|
102 |
|
103 #endif//SQLTRACEDEF_H |