equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
46 } |
46 } |
47 |
47 |
48 LOCAL_C void callExampleL() // initialize and call example code under cleanup stack |
48 LOCAL_C void callExampleL() // initialize and call example code under cleanup stack |
49 { |
49 { |
50 console=Console::NewL(_L("Test code"), |
50 console=Console::NewL(_L("Test code"), |
51 TSize(KDefaultConsWidth,KDefaultConsHeight)); |
51 TSize(KConsFullScreen, KConsFullScreen)); |
52 CleanupStack::PushL(console); |
52 CleanupStack::PushL(console); |
53 TRAPD(error,doExampleL()); // perform example function |
53 TRAPD(error,doExampleL()); // perform example function |
54 if (error) console->Printf(_L("failed: leave code=%d"), error); |
54 if (error) console->Printf(_L("failed: leave code=%d"), error); |
55 else console->Printf(_L("ok")); |
55 else console->Printf(_L("ok")); |
56 console->Printf(_L(" [press any key]")); |
56 console->Printf(_L(" [press any key]")); |