sl@0: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "ARM EABI LICENCE.txt" sl@0: // which accompanies this distribution, and is available sl@0: // in kernel/eka/compsupp. sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #include sl@0: #include sl@0: sl@0: extern "C" { sl@0: // function the runtime can call to abort a process, sl@0: // the runtime library is not finalized and no atexit sl@0: // processing takes places. sl@0: EXPORT_C void __rt_abort() /* never returns */ sl@0: { sl@0: RThread().Kill(KErrAbort); sl@0: } sl@0: } sl@0: sl@0: namespace std { sl@0: EXPORT_C void terminate(void) sl@0: { sl@0: __rt_abort(); sl@0: } sl@0: }