equal
deleted
inserted
replaced
|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // @file panic.cpp |
|
15 // Panic codes and panic function. This header should be kept private and not exported to |
|
16 // /epoc32/include/ |
|
17 |
|
18 #include <e32std.h> /// for GLDEF_C and User:: |
|
19 #include "panic.h" /// Header for this file |
|
20 |
|
21 // |
|
22 // Panic Function |
|
23 // |
|
24 GLDEF_C void Panic(TTSYPanic aPanicNumber) |
|
25 { |
|
26 _LIT(panicText,"PhoneTsy"); |
|
27 _LIT(extension,".TSY"); |
|
28 |
|
29 TName myTsyName(panicText); |
|
30 |
|
31 #ifdef TSY_INSTANCE |
|
32 TBuf16<16> tgt; |
|
33 tgt.Num(TSY_INSTANCE); |
|
34 myTsyName.Append(tgt); |
|
35 #endif |
|
36 myTsyName.Append(extension); |
|
37 |
|
38 User::Panic(myTsyName,aPanicNumber); |
|
39 } |