kernel/eka/compsupp/rvct2_1/rtabort.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 //
       
    15 
       
    16 #include <e32std.h>
       
    17 #include <e32std_private.h>
       
    18 
       
    19 extern "C" {
       
    20 // function the runtime can call to abort a process, 
       
    21 // the runtime library is not finalized and no atexit 
       
    22 // processing takes places.
       
    23 EXPORT_C void __rt_abort() /* never returns */
       
    24     {
       
    25     RThread().Kill(KErrAbort);
       
    26     }
       
    27 }
       
    28 
       
    29 namespace std {
       
    30 EXPORT_C void terminate(void) 
       
    31     {
       
    32     __rt_abort();
       
    33     }
       
    34 }