2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Name : exception_winscw.h
16 * Part of : standard c++ library.
17 * This file provides the required declararions/definitions some
18 * of the C++ exception features required of the CW runtime.
25 #ifndef __EXCEPTION_WINSCW_
26 #define __EXCEPTION_WINSCW_
28 extern "C" IMPORT_C bool __uncaught_exception(void);
30 inline bool std::uncaught_exception() throw()
33 * We rely on the CW runtime support to find it is an uncaught exception.
35 return __uncaught_exception();
38 inline std::exception::exception() __NO_THROW
41 inline std::exception::exception(const std::exception&) __NO_THROW
44 inline std::exception& std::exception::operator=(const std::exception&) __NO_THROW
49 inline std::exception::~exception() __NO_THROW
52 inline const char* std::exception::what() const __NO_THROW
54 return "class exception";
58 inline std::bad_exception::bad_exception() __NO_THROW
61 inline std::bad_exception::bad_exception(const std::bad_exception&) __NO_THROW
64 inline std::bad_exception::~bad_exception() __NO_THROW
67 inline std::bad_exception& std::bad_exception::operator=(const std::bad_exception&) __NO_THROW
72 inline const char* std::bad_exception::what() const __NO_THROW
74 return "class bad_exception";
77 #endif //__EXCEPTION_WINSCW_