symport/e32/euser/us_utl.cpp
changeset 1 0a7b44b10206
child 2 806186ab5e14
equal deleted inserted replaced
0:c55016431358 1:0a7b44b10206
       
     1 // Copyright (c) 1994-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 "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32\euser\us_utl.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include "us_std.h"
       
    19 
       
    20 
       
    21 GLDEF_C void Panic(TCdtPanic aPanic)
       
    22 //
       
    23 // Panic the process with USER as the category.
       
    24 //
       
    25 	{
       
    26 
       
    27 	User::Panic(_L("USER"),aPanic);
       
    28 	}
       
    29 
       
    30 EXPORT_C void User::PanicUnexpectedLeave()
       
    31 	{
       
    32 	::Panic(EUnexpectedLeave);
       
    33 	}
       
    34 
       
    35 EXPORT_C TFormatInfo::TFormatInfo()
       
    36 //
       
    37 // Constructor
       
    38 //
       
    39 	:iFormatIsCurrent(FALSE),i512ByteSectorsFormatted(0),iMaxBytesPerFormat(0)
       
    40 	{}
       
    41 
       
    42 #if defined(_UNICODE)
       
    43 void TestOverflowTruncate::Overflow(TDes16 &/*aDes*/)
       
    44 	{
       
    45 
       
    46 	return;
       
    47 	}
       
    48 #else
       
    49 void TestOverflowTruncate::Overflow(TDes8 &/*aDes*/)
       
    50 	{
       
    51 
       
    52 	return;
       
    53 	}
       
    54 #endif
       
    55 
       
    56 EXPORT_C void PanicTFixedArray()
       
    57 	{
       
    58 	Panic(EBadFixedArrayIndex);
       
    59 	}
       
    60 
       
    61 
       
    62 // GCC support for X86
       
    63 /*#if defined(__GCC32__) && defined(__X86__)
       
    64 extern "C" 
       
    65 {
       
    66 EXPORT_C int __cxa_pure_virtual()
       
    67 //
       
    68 // Gets called for any unreplaced pure virtual methods.
       
    69 //
       
    70 	{
       
    71 	Panic(EPureVirtualCalled);
       
    72 	return 0;
       
    73 	}
       
    74 
       
    75 
       
    76 }
       
    77 #endif*/