kernel/eka/compsupp/rvct2_0/rtexit.cpp
changeset 266 0008ccd16016
parent 259 57b9594f5772
child 272 70a6efdb753f
child 281 13fbfa31d2ba
equal deleted inserted replaced
259:57b9594f5772 266:0008ccd16016
     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 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 }