equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * function the runtime can call to exit process, 'finalizing' |
|
16 * the runtime library but avoiding atexit processing. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <e32std_private.h> |
|
23 |
|
24 extern "C" { |
|
25 IMPORT_C extern void __rt_lib_shutdown(void); |
|
26 |
|
27 EXPORT_C void __rt_exit(TInt aReturnCode) /* never returns */ |
|
28 { |
|
29 __rt_lib_shutdown(); |
|
30 User::Exit(aReturnCode); |
|
31 } |
|
32 } |