os/kernelhwsrv/kernel/eka/compsupp/rvct3_1/rtabort.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 #include <e32std_private.h>
    20 
    21 
    22 // The run-time can call this function to abort a process. The run-time library is
    23 // not finalized and no atexit processing takes places.
    24 extern "C" EXPORT_C void __rt_abort() /* never returns */
    25     {
    26     RThread().Kill(KErrAbort);
    27     }
    28 
    29 EXPORT_C void std::terminate(void) 
    30     {
    31     __rt_abort();
    32     }
    33