sl@0
|
1 |
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
#ifndef SQLTRACEDEF_H
|
sl@0
|
16 |
#define SQLTRACEDEF_H
|
sl@0
|
17 |
|
sl@0
|
18 |
#include <e32def.h>
|
sl@0
|
19 |
#include "SqlAssert.h"
|
sl@0
|
20 |
|
sl@0
|
21 |
//////////////////////////////////////////////////////////////////////////////////////
|
sl@0
|
22 |
|
sl@0
|
23 |
#if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_BORDER_TRACE_ENABLED
|
sl@0
|
24 |
#define __SQLTRACE_BORDERVAR(var) var
|
sl@0
|
25 |
#define __SQLTRACE_BORDEREXPR(expr) expr
|
sl@0
|
26 |
#else
|
sl@0
|
27 |
#define __SQLTRACE_BORDERVAR(var)
|
sl@0
|
28 |
#define __SQLTRACE_BORDEREXPR(expr)
|
sl@0
|
29 |
#endif
|
sl@0
|
30 |
|
sl@0
|
31 |
#if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_INTERNALS_TRACE_ENABLED
|
sl@0
|
32 |
#define __SQLTRACE_INTERNALSVAR(var) var
|
sl@0
|
33 |
#define __SQLTRACE_INTERNALSEXPR(expr) expr
|
sl@0
|
34 |
#else
|
sl@0
|
35 |
#define __SQLTRACE_INTERNALSVAR(var)
|
sl@0
|
36 |
#define __SQLTRACE_INTERNALSEXPR(expr)
|
sl@0
|
37 |
#endif
|
sl@0
|
38 |
|
sl@0
|
39 |
#if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_BUR_TRACE_ENABLED
|
sl@0
|
40 |
#define __SQLTRACE_BURVAR(var) var
|
sl@0
|
41 |
#define __SQLTRACE_BUREXPR(expr) expr
|
sl@0
|
42 |
#else
|
sl@0
|
43 |
#define __SQLTRACE_BURVAR(var)
|
sl@0
|
44 |
#define __SQLTRACE_BUREXPR(expr)
|
sl@0
|
45 |
#endif
|
sl@0
|
46 |
|
sl@0
|
47 |
#if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_COMPACT_TRACE_ENABLED
|
sl@0
|
48 |
#define __SQLTRACE_COMPACTVAR(var) var
|
sl@0
|
49 |
#define __SQLTRACE_COMPACTEXPR(expr) expr
|
sl@0
|
50 |
#else
|
sl@0
|
51 |
#define __SQLTRACE_COMPACTVAR(var)
|
sl@0
|
52 |
#define __SQLTRACE_COMPACTEXPR(expr)
|
sl@0
|
53 |
#endif
|
sl@0
|
54 |
|
sl@0
|
55 |
#if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_SESSION_TRACE_ENABLED
|
sl@0
|
56 |
#define __SQLTRACE_SESSIONVAR(var) var
|
sl@0
|
57 |
#define __SQLTRACE_SESSIONEXPR(expr) expr
|
sl@0
|
58 |
#else
|
sl@0
|
59 |
#define __SQLTRACE_SESSIONVAR(var)
|
sl@0
|
60 |
#define __SQLTRACE_SESSIONEXPR(expr)
|
sl@0
|
61 |
#endif
|
sl@0
|
62 |
|
sl@0
|
63 |
#if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_AUTHORIZER_TRACE_ENABLED
|
sl@0
|
64 |
#define __SQLTRACE_AUTHORIZERVAR(var) var
|
sl@0
|
65 |
#define __SQLTRACE_AUTHORIZEREXPR(expr) expr
|
sl@0
|
66 |
#else
|
sl@0
|
67 |
#define __SQLTRACE_AUTHORIZERVAR(var)
|
sl@0
|
68 |
#define __SQLTRACE_AUTHORIZEREXPR(expr)
|
sl@0
|
69 |
#endif
|
sl@0
|
70 |
|
sl@0
|
71 |
#if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_BLOB_TRACE_ENABLED
|
sl@0
|
72 |
#define __SQLTRACE_BLOBVAR(var) var
|
sl@0
|
73 |
#define __SQLTRACE_BLOBEXPR(expr) expr
|
sl@0
|
74 |
#else
|
sl@0
|
75 |
#define __SQLTRACE_BLOBVAR(var)
|
sl@0
|
76 |
#define __SQLTRACE_BLOBEXPR(expr)
|
sl@0
|
77 |
#endif
|
sl@0
|
78 |
|
sl@0
|
79 |
//////////////////////////////////////////////////////////////////////////////////////
|
sl@0
|
80 |
|
sl@0
|
81 |
#if defined OST_TRACE_COMPILER_IN_USE && defined _SQL_RDEBUG_PRINT
|
sl@0
|
82 |
#undef OstTrace0
|
sl@0
|
83 |
#undef OstTrace1
|
sl@0
|
84 |
#undef OstTraceExt1
|
sl@0
|
85 |
#undef OstTraceExt2
|
sl@0
|
86 |
#undef OstTraceExt3
|
sl@0
|
87 |
#undef OstTraceExt4
|
sl@0
|
88 |
#undef OstTraceExt5
|
sl@0
|
89 |
|
sl@0
|
90 |
void SqlPrintf(TInt aGroupName, TInt aTraceName, const char* aFormat, ...);
|
sl@0
|
91 |
|
sl@0
|
92 |
#define OstTrace0 SqlPrintf
|
sl@0
|
93 |
#define OstTrace1 SqlPrintf
|
sl@0
|
94 |
#define OstTraceExt1 SqlPrintf
|
sl@0
|
95 |
#define OstTraceExt2 SqlPrintf
|
sl@0
|
96 |
#define OstTraceExt3 SqlPrintf
|
sl@0
|
97 |
#define OstTraceExt4 SqlPrintf
|
sl@0
|
98 |
#define OstTraceExt5 SqlPrintf
|
sl@0
|
99 |
#endif//defined OST_TRACE_COMPILER_IN_USE && defined _SQL_RDEBUG_PRINT
|
sl@0
|
100 |
|
sl@0
|
101 |
//////////////////////////////////////////////////////////////////////////////////////
|
sl@0
|
102 |
|
sl@0
|
103 |
#endif//SQLTRACEDEF_H
|