|
1 /* |
|
2 * Copyright (c) 2002 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: Includes some common defines used in the startup application |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef STARTUPDEFINES_H |
|
20 #define STARTUPDEFINES_H |
|
21 |
|
22 //CONSTANTS |
|
23 _LIT( KStartupAppName, "Startup" ); // The application name |
|
24 |
|
25 // MACROS |
|
26 |
|
27 #define PANIC(aPanic) User::Panic( KStartupAppName, aPanic ) |
|
28 |
|
29 #define TRACE_ADDPREFIX(aText) (TPtrC((const TText *)L"StartupApp: \"" L##aText L"\"")) |
|
30 |
|
31 #ifdef _DEBUG |
|
32 #define TRACES(aMsg) RDebug::Print( TRACE_ADDPREFIX(aMsg) ) |
|
33 #define TRACES1(aFormat,aP1) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1) ) |
|
34 #define TRACES2(aFormat,aP1,aP2) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2) ) |
|
35 #define TRACES3(aFormat,aP1,aP2,aP3) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2),(aP3) ) |
|
36 #else |
|
37 #define TRACES(aMsg) |
|
38 #define TRACES1(aFormat,aP1) |
|
39 #define TRACES2(aFormat,aP1,aP2) |
|
40 #define TRACES3(aFormat,aP1,aP2,aP3) |
|
41 #endif |
|
42 #endif // STARTUPDEFINES_H |
|
43 |
|
44 // End of File |