equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-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 the License "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 // e32test\emul\t_emul_dll.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 #include <e32std.h> |
|
19 #include <e32std_private.h> |
|
20 #include "t_emul.h" |
|
21 |
|
22 #ifdef __INCLUDE_STATIC_DATA__ |
|
23 |
|
24 struct TStaticData |
|
25 { |
|
26 TStaticData(); |
|
27 ~TStaticData(); |
|
28 TInt* iData; |
|
29 }; |
|
30 |
|
31 TStaticData::TStaticData() |
|
32 { |
|
33 iData = (TInt*) User::Alloc(1); |
|
34 } |
|
35 |
|
36 TStaticData::~TStaticData() |
|
37 { |
|
38 User::Free(iData); |
|
39 } |
|
40 |
|
41 TStaticData staticData; |
|
42 |
|
43 #endif |
|
44 |
|
45 EXPORT_C void TrapExceptionInDll() |
|
46 { |
|
47 TRAP_IGNORE(User::Leave(KErrGeneral)); |
|
48 } |