|
1 /* |
|
2 * Copyright (c) 2007 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef NATFWPLUGINLOGS_H |
|
22 #define NATFWPLUGINLOGS_H |
|
23 |
|
24 |
|
25 #include "natfwlogs.h" |
|
26 |
|
27 #ifdef _DEBUG |
|
28 #define __NATFW_PLUGIN |
|
29 #endif |
|
30 |
|
31 #ifdef __NATFW_PLUGIN |
|
32 _LIT( KNATFWPlugin, "NATFW / Plug-in:" ); |
|
33 |
|
34 #define __NATPLUGIN(a) \ |
|
35 { _LIT( KStr, a); TNATFWLog::Print( KNATFWPlugin, KStr ); } |
|
36 #define __NATPLUGIN_INT1(a, b) \ |
|
37 { _LIT( KStr, a); TNATFWLog::Print( KNATFWPlugin, KStr, b); } |
|
38 #define __NATPLUGIN_INT2(a, b, c, d) \ |
|
39 { _LIT( KStr1, a); _LIT( KStr2, c); \ |
|
40 TNATFWLog::Print( KNATFWlugin, KStr1, b, KStr2, d); } |
|
41 #define __NATPLUGIN_STR(a, b) \ |
|
42 { _LIT( KStr, a); TNATFWLog::Print( KNATFWPlugin, KStr, b); } |
|
43 #define __NATPLUGIN_STR8(a, b) \ |
|
44 { _LIT( KStr, a); TNATFWLog::Print( KNATFWPlugin, KStr, b); } |
|
45 #define __NATPLUGIN_ADDRLOG( a, b ) \ |
|
46 TNATFWLog::Print( _L( a ), b ); |
|
47 #else |
|
48 #define __NATPLUGIN(a) |
|
49 #define __NATPLUGIN_INT1(a, b) |
|
50 #define __NATPLUGIN_INT2(a, b, c, d) |
|
51 #define __NATPLUGIN_STR(a, b) |
|
52 #define __NATPLUGIN_STR8(a, b) |
|
53 #define __NATPLUGIN_ADDRLOG( a, b ) |
|
54 #endif |
|
55 |
|
56 #endif // NATFWPLUGINLOGS_H |