First public contribution.
     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".
 
     8 // Initial Contributors:
 
     9 // Nokia Corporation - initial contribution.
 
    14 // e32test\emul\t_emul_slave.cpp
 
    19 #include <e32std_private.h>
 
    22 void TrapExceptionInExe()
 
    24 	TRAP_IGNORE(User::Leave(KErrGeneral));
 
    27 TInt LoadLibraryAndCallFunc()
 
    30 	TInt r = l.Load(KTEmulDll2Name);
 
    33 	TTrapExceptionInDllFunc func =
 
    34 		(TTrapExceptionInDllFunc)l.Lookup(KTrapExceptionInDllOrdinal);
 
    43 GLDEF_C TInt E32Main()
 
    46 	User::CommandLine(arg);
 
    49 	TInt r = lex.Val(val);
 
    59 		case ESlaveTrapExceptionInExe:
 
    63 		case ESlaveTrapExceptionInLinkedDll:
 
    67 		case ESlaveTrapExceptionInLoadedDll:
 
    68 			r = LoadLibraryAndCallFunc();