sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32test\emul\t_emul_dll.cpp sl@0: // sl@0: // sl@0: sl@0: #include sl@0: #include sl@0: #include "t_emul.h" sl@0: sl@0: #ifdef __INCLUDE_STATIC_DATA__ sl@0: sl@0: struct TStaticData sl@0: { sl@0: TStaticData(); sl@0: ~TStaticData(); sl@0: TInt* iData; sl@0: }; sl@0: sl@0: TStaticData::TStaticData() sl@0: { sl@0: iData = (TInt*) User::Alloc(1); sl@0: } sl@0: sl@0: TStaticData::~TStaticData() sl@0: { sl@0: User::Free(iData); sl@0: } sl@0: sl@0: TStaticData staticData; sl@0: sl@0: #endif sl@0: sl@0: EXPORT_C void TrapExceptionInDll() sl@0: { sl@0: TRAP_IGNORE(User::Leave(KErrGeneral)); sl@0: }