os/kernelhwsrv/kernel/eka/compsupp/rvct2_0/rtexit.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 }