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