|
1 /* |
|
2 * Copyright (c) 2002 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: WPEngineDebug contains debug macros. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef WPENGINEDEBUG_H |
|
20 #define WPENGINEDEBUG_H |
|
21 |
|
22 // MACROS |
|
23 |
|
24 // Define this to enable debug output |
|
25 //#define ENGINEDEBUG |
|
26 |
|
27 // DEBUG can be used for outputting debug |
|
28 #ifdef ENGINEDEBUG |
|
29 #define DEBUG(TEXT) Debug( _L(#TEXT) ); |
|
30 #define DVA(TEXT, ARG1) Debug( _L(#TEXT), (ARG1) ); |
|
31 #define DVA2(TEXT, ARG1, ARG2) Debug( _L(#TEXT), (ARG1), (ARG2) ); |
|
32 #define DVA3(TEXT, ARG1, ARG2, ARG3) Debug( _L(#TEXT), (ARG1), (ARG2), (ARG3) ); |
|
33 #else |
|
34 #define DEBUG(TEXT) |
|
35 #define DVA(TEXT, ARG1) |
|
36 #define DVA2(TEXT, ARG1, ARG2) |
|
37 #define DVA3(TEXT, ARG1, ARG2, ARG3) |
|
38 #endif |
|
39 |
|
40 #if defined(__WINS__) || defined(__EPOC32__) |
|
41 GLDEF_C void Debug( TRefByValue<const TDesC> aText, ...); |
|
42 #endif |
|
43 |
|
44 #endif /* WPENGINEDEBUG_H */ |