64
|
1 |
/*
|
|
2 |
* Copyright (c) 2008-2009 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: Definitions for tracing.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef TRACEDEFS_H
|
|
20 |
#define TRACEDEFS_H
|
|
21 |
|
|
22 |
//-----------------------------------------------------------------------------
|
|
23 |
// Constants
|
|
24 |
//-----------------------------------------------------------------------------
|
|
25 |
//
|
|
26 |
|
|
27 |
/**
|
|
28 |
* Prefix trace macro to complete tracing with component name.
|
|
29 |
* Returns TDesC which can be used directly with RDebug or RFileLogger.
|
|
30 |
*/
|
|
31 |
#define _PREFIX_TRACE( aMsg ) TPtrC( (const TText*)L"[GOOM]: " L##aMsg )
|
|
32 |
#define _PREFIX_TRACE_2( aMsg1, aMsg2 ) TPtrC( (const TText*)L"[GOOM]: " L##aMsg1 L##aMsg2 )
|
|
33 |
|
|
34 |
/**
|
|
35 |
* Prefix macro for strings
|
|
36 |
*/
|
|
37 |
#define _PREFIX_CHAR( aMsg ) (const char*)"[GOOM]: " ##aMsg
|
|
38 |
|
|
39 |
#endif // TRACEDEFS_H
|