os/kernelhwsrv/kernel/eka/compsupp/rvct2_2/rtexit.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2002-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 "ARM EABI LICENCE.txt"
     5 // which accompanies this distribution, and is available
     6 // in kernel/eka/compsupp.
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // function the runtime can call to exit process, 'finalizing'
    15 // the runtime library but avoiding atexit processing.
    16 // 
    17 //
    18 
    19 #include <e32std.h>
    20 #include <e32std_private.h>
    21 
    22 extern "C" {
    23 IMPORT_C extern void __rt_lib_shutdown(void);
    24 
    25 EXPORT_C void __rt_exit(TInt aReturnCode) /* never returns */
    26     {
    27     __rt_lib_shutdown();
    28     User::Exit(aReturnCode);
    29     }
    30 }