kernel/eka/compsupp/rvct/rtabort.cpp
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 2008-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 // This file is part of drtrvct.dll and drtrvct_vfpv2.dll
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <e32std.h>
       
    19 
       
    20 
       
    21 // The run-time can call this function to abort a process. The run-time library is
       
    22 // not finalized and no atexit processing takes places.
       
    23 extern "C" EXPORT_C void __rt_abort() /* never returns */
       
    24     {
       
    25     RThread().Kill(KErrAbort);
       
    26     }
       
    27 
       
    28 EXPORT_C void std::terminate() 
       
    29     {
       
    30     __rt_abort();
       
    31     }