epoc32/include/stdapis/stlportv5/exception_winscw.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/stlportv5/exception_winscw.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,77 @@
     1.4 +/*
     1.5 +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +* Name        : exception_winscw.h
    1.19 +* Part of     : standard c++ library.
    1.20 +* This file provides the required declararions/definitions some
    1.21 +* of the C++ exception features required of the CW runtime.
    1.22 +* 
    1.23 +*
    1.24 +*/
    1.25 +
    1.26 +
    1.27 +
    1.28 +#ifndef __EXCEPTION_WINSCW_
    1.29 +#define __EXCEPTION_WINSCW_
    1.30 +
    1.31 +extern "C" IMPORT_C bool __uncaught_exception(void);
    1.32 +
    1.33 +inline bool std::uncaught_exception() throw()
    1.34 +  {
    1.35 +   /*
    1.36 +    * We rely on the CW runtime support to find it is an uncaught exception.
    1.37 +    */
    1.38 +  return __uncaught_exception();
    1.39 +  }
    1.40 +
    1.41 +inline std::exception::exception() __NO_THROW
    1.42 +	{ }
    1.43 +
    1.44 +inline std::exception::exception(const std::exception&) __NO_THROW
    1.45 +	{ }
    1.46 +
    1.47 +inline std::exception& std::exception::operator=(const std::exception&) __NO_THROW
    1.48 +	{
    1.49 +	return *this;
    1.50 +	}
    1.51 +
    1.52 +inline std::exception::~exception() __NO_THROW
    1.53 +	{ }
    1.54 +
    1.55 +inline const char* std::exception::what() const __NO_THROW
    1.56 +	{ 
    1.57 +	return "class exception";
    1.58 +	}
    1.59 +
    1.60 +
    1.61 +inline std::bad_exception::bad_exception() __NO_THROW 
    1.62 +	{}
    1.63 +
    1.64 +inline std::bad_exception::bad_exception(const std::bad_exception&) __NO_THROW 
    1.65 +	{}
    1.66 +
    1.67 +inline std::bad_exception::~bad_exception() __NO_THROW 
    1.68 +	{}     
    1.69 +
    1.70 +inline std::bad_exception& std::bad_exception::operator=(const std::bad_exception&) __NO_THROW
    1.71 +	{
    1.72 +	return *this;
    1.73 +	}
    1.74 +
    1.75 +inline const char* std::bad_exception::what() const __NO_THROW
    1.76 +	{ 
    1.77 +	return "class bad_exception";
    1.78 +	}
    1.79 +
    1.80 +#endif //__EXCEPTION_WINSCW_