1 /* |
|
2 * Copyright (c) 2006 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: This file defines logging macros for TelephonyDeviceMode |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CTELDMDEBUG_H |
|
21 #define CTELDMDEBUG_H |
|
22 |
|
23 #ifdef _DEBUG |
|
24 // =========================================================================== |
|
25 // RDebug logging for target HW |
|
26 // =========================================================================== |
|
27 #include <e32svr.h> |
|
28 |
|
29 #define FLOG( a ) { RDebug::Print( a ); } |
|
30 #define FTRACE( a ) { a; } |
|
31 |
|
32 // Declare the FPrint function |
|
33 // |
|
34 inline void FPrint( const TRefByValue<const TDesC> aFmt, ... ) |
|
35 { |
|
36 VA_LIST list; |
|
37 VA_START( list, aFmt ); |
|
38 TInt tmpInt = VA_ARG( list, TInt ); |
|
39 TInt tmpInt2 = VA_ARG( list, TInt ); |
|
40 TInt tmpInt3 = VA_ARG( list, TInt ); |
|
41 VA_END( list ); |
|
42 RDebug::Print( aFmt, tmpInt, tmpInt2, tmpInt3 ); |
|
43 } |
|
44 |
|
45 // =========================================================================== |
|
46 #else // // No loggings --> Reduced binary size |
|
47 // =========================================================================== |
|
48 #define FLOG( a ) |
|
49 #define FTRACE( a ) |
|
50 |
|
51 #endif // _DEBUG |
|
52 |
|
53 #endif // |
|
54 |
|
55 // End of File |
|