examples/after/e32main.cpp
changeset 0 fe474e3b08fb
equal deleted inserted replaced
-1:000000000000 0:fe474e3b08fb
       
     1 // Copyright (c) 2010 Symbian Foundation Ltd.
       
     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 // Symbian Foundation - Initial contribution
       
    10 // 
       
    11 // Description:
       
    12 // Entrypoint for Symbian .exe, keeps the compiler & linker happy
       
    13 
       
    14 #include <e32std.h>
       
    15 
       
    16 // helper function for other files which need to confuse the optimiser
       
    17 int unknown(void) { return 42; }
       
    18 
       
    19 extern int source1(void);		// from source1.cpp
       
    20 
       
    21 GLDEF_C TInt E32Main()
       
    22     {
       
    23     // Call trivial functions in other source files, to stop them being optimised away
       
    24 		return source1();
       
    25 		}
       
    26