examples/before/e32main.cpp
author William Roberts <williamr@symbian.org>
Mon, 14 Jun 2010 15:47:21 +0100
changeset 7 8c4a7869f673
parent 0 fe474e3b08fb
permissions -rw-r--r--
Add heuristic for guessing the source file associated with assembler errors Generalise text in error: pasting "xxx" and "yyy" does not give a valid preprocessing token Ignore "No such file or directory", as these are unlikely to be gcc specific.

// Copyright (c) 2010 Symbian Foundation Ltd.
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Symbian Foundation - Initial contribution
// 
// Description:
// Entrypoint for Symbian .exe, keeps the compiler & linker happy

#include <e32std.h>

// helper function for other files which need to confuse the optimiser
int unknown(void) { return 42; }

extern int source1(void);		// from source1.cpp

GLDEF_C TInt E32Main()
    {
    // Call trivial functions in other source files, to stop them being optimised away
		return source1();
		}