equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: Defines macro for debug output |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 4.1.1 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef __MP_DEBUG_H__ |
|
23 #define __MP_DEBUG_H__ |
|
24 |
|
25 #include <e32svr.h> |
|
26 #include <e32def.h> |
|
27 #include <flogger.h> |
|
28 |
|
29 // |
|
30 // Forward declaration |
|
31 // |
|
32 class AsxParserDebug; |
|
33 |
|
34 // #ifdef __MARM__ |
|
35 // #define _ASX_PARSER_FILE_LOGGING_ |
|
36 // #endif |
|
37 |
|
38 #ifdef _ASX_PARSER_FILE_LOGGING_ |
|
39 #define ASX_DEBUG AsxParserDebug::FileLog |
|
40 #else |
|
41 #ifdef _DEBUG |
|
42 #define ASX_DEBUG RDebug::Print |
|
43 #else |
|
44 #define ASX_DEBUG AsxParserDebug::NullLog |
|
45 #endif |
|
46 #endif |
|
47 |
|
48 class AsxParserDebug |
|
49 { |
|
50 public: |
|
51 inline static void NullLog(TRefByValue<const TDesC16> /*aFmt*/,...) |
|
52 { |
|
53 } |
|
54 |
|
55 inline static void FileLog(TRefByValue<const TDesC16> aFmt,...) |
|
56 { |
|
57 VA_LIST list; |
|
58 VA_START(list,aFmt); |
|
59 RFileLogger::WriteFormat(_L("AsxParser"), _L("ap.log"),EFileLoggingModeAppend,aFmt,list); |
|
60 } |
|
61 }; |
|
62 |
|
63 #endif // __MP_DEBUG_H__ |