|
1 /* |
|
2 * Copyright (c) 2010 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: LocVerifierDlgDebug contains debug macros. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef LOCVERIFIERDLGDEBUG_H |
|
20 #define LOCVERIFIERDLGDEBUG_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "locutilsdebug.h" |
|
24 #include <e32std.h> |
|
25 |
|
26 |
|
27 // MACROS |
|
28 |
|
29 /** |
|
30 * By using component specific debug macros unnecessary |
|
31 * debug prints can be avoided. |
|
32 * Also component specific debugging is possible by compiling |
|
33 * only certain components when LOC_ENABLE_DEBUG_PRINT is defined. |
|
34 */ |
|
35 |
|
36 #ifdef LOC_ENABLE_DEBUG_PRINT |
|
37 #define LOCVERIFIERDLGDEBUG(TEXT) DEBUG(TEXT); |
|
38 #define LOCVERIFIERDLGDEBUG1(TEXT, ARG1) LOC(TEXT, ARG1); |
|
39 #define LOCVERIFIERDLGDEBUG2(TEXT, ARG1, ARG2) LOC2(TEXT, ARG1, ARG2); |
|
40 #define LOCVERIFIERDLGDEBUG3(TEXT, ARG1, ARG2, ARG3) LOC3(TEXT, ARG1, ARG2, ARG3); |
|
41 #else |
|
42 #define LOCVERIFIERDLGDEBUG(TEXT); |
|
43 #define LOCVERIFIERDLGDEBUG1(TEXT, ARG1); |
|
44 #define LOCVERIFIERDLGDEBUG2(TEXT, ARG1, ARG2); |
|
45 #define LOCVERIFIERDLGDEBUG3(TEXT, ARG1, ARG2, ARG3); |
|
46 #endif |
|
47 |
|
48 #endif /* LOCVERIFIERDLGDEBUG_H */ |