62
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 - 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: Central place for nice debug-type macros & functions
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef DEBUG_H
|
|
19 |
#define DEBUG_H
|
|
20 |
|
|
21 |
//INCLUDES
|
|
22 |
#include <f32file.h>
|
|
23 |
#define FTRACE(a) {a;}
|
|
24 |
|
|
25 |
/**
|
|
26 |
* Declare the FPrint function
|
|
27 |
* @since Series 60 2.7
|
|
28 |
* @return none
|
|
29 |
*/
|
|
30 |
inline void FPrint(const TRefByValue<const TDesC> aFmt, ...)
|
|
31 |
{
|
|
32 |
VA_LIST list;
|
|
33 |
VA_START(list,aFmt);
|
|
34 |
TInt tmpInt = VA_ARG(list, TInt);
|
|
35 |
TInt tmpInt2 = VA_ARG(list, TInt);
|
|
36 |
TInt tmpInt3 = VA_ARG(list, TInt);
|
|
37 |
VA_END(list);
|
|
38 |
#ifdef _DEBUG
|
|
39 |
RDebug::Print(aFmt, tmpInt, tmpInt2, tmpInt3);
|
|
40 |
#endif
|
|
41 |
}
|
|
42 |
#endif // DEBUG_H
|
|
43 |
|
|
44 |
// End of File
|