sl@0: // Copyright (c) 1994-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 "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32\euser\us_utl.cpp sl@0: // sl@0: // sl@0: sl@0: #include "us_std.h" sl@0: sl@0: sl@0: GLDEF_C void Panic(TCdtPanic aPanic) sl@0: // sl@0: // Panic the process with USER as the category. sl@0: // sl@0: { sl@0: sl@0: User::Panic(_L("USER"),aPanic); sl@0: } sl@0: sl@0: EXPORT_C void User::PanicUnexpectedLeave() sl@0: { sl@0: ::Panic(EUnexpectedLeave); sl@0: } sl@0: sl@0: EXPORT_C TFormatInfo::TFormatInfo() sl@0: // sl@0: // Constructor sl@0: // sl@0: :iFormatIsCurrent(FALSE),i512ByteSectorsFormatted(0),iMaxBytesPerFormat(0) sl@0: {} sl@0: sl@0: #if defined(_UNICODE) sl@0: void TestOverflowTruncate::Overflow(TDes16 &/*aDes*/) sl@0: { sl@0: sl@0: return; sl@0: } sl@0: #else sl@0: void TestOverflowTruncate::Overflow(TDes8 &/*aDes*/) sl@0: { sl@0: sl@0: return; sl@0: } sl@0: #endif sl@0: sl@0: EXPORT_C void PanicTFixedArray() sl@0: { sl@0: Panic(EBadFixedArrayIndex); sl@0: } sl@0: sl@0: sl@0: // GCC support for X86 sl@0: /*#if defined(__GCC32__) && defined(__X86__) sl@0: extern "C" sl@0: { sl@0: EXPORT_C int __cxa_pure_virtual() sl@0: // sl@0: // Gets called for any unreplaced pure virtual methods. sl@0: // sl@0: { sl@0: Panic(EPureVirtualCalled); sl@0: return 0; sl@0: } sl@0: sl@0: sl@0: } sl@0: #endif*/