|
1 // Copyright (c) 2010 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 the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 #ifndef SQLITETRACEDEF_H |
|
16 #define SQLITETRACEDEF_H |
|
17 |
|
18 #include <e32def.h> |
|
19 #include "SqliteUtil.h" |
|
20 |
|
21 ////////////////////////////////////////////////////////////////////////////////////// |
|
22 |
|
23 #if defined OST_TRACE_COMPILER_IN_USE && defined _SQLITE_OS_TRACE_ENABLED |
|
24 #define __SQLITETRACE_OSVAR(var) var |
|
25 #define __SQLITETRACE_OSEXPR(expr) expr |
|
26 #else |
|
27 #define __SQLITETRACE_OSVAR(var) |
|
28 #define __SQLITETRACE_OSEXPR(expr) |
|
29 #endif |
|
30 |
|
31 ////////////////////////////////////////////////////////////////////////////////////// |
|
32 |
|
33 #if defined OST_TRACE_COMPILER_IN_USE && defined _SQLITE_RDEBUG_PRINT |
|
34 #undef OstTrace0 |
|
35 #undef OstTrace1 |
|
36 #undef OstTraceExt1 |
|
37 #undef OstTraceExt2 |
|
38 #undef OstTraceExt3 |
|
39 #undef OstTraceExt4 |
|
40 #undef OstTraceExt5 |
|
41 |
|
42 void SqlitePrintf(TInt aGroupName, TInt aTraceName, const char* aFormat, ...); |
|
43 |
|
44 #define OstTrace0 SqlitePrintf |
|
45 #define OstTrace1 SqlitePrintf |
|
46 #define OstTraceExt1 SqlitePrintf |
|
47 #define OstTraceExt2 SqlitePrintf |
|
48 #define OstTraceExt3 SqlitePrintf |
|
49 #define OstTraceExt4 SqlitePrintf |
|
50 #define OstTraceExt5 SqlitePrintf |
|
51 #endif//defined OST_TRACE_COMPILER_IN_USE && defined _SQLITE_RDEBUG_PRINT |
|
52 |
|
53 ////////////////////////////////////////////////////////////////////////////////////// |
|
54 |
|
55 #endif//SQLITETRACEDEF_H |