epoc32/include/stdapis/stlportv5/exception_winscw.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    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.
    19 * 
    20 *
    21 */
    22 
    23 
    24 
    25 #ifndef __EXCEPTION_WINSCW_
    26 #define __EXCEPTION_WINSCW_
    27 
    28 extern "C" IMPORT_C bool __uncaught_exception(void);
    29 
    30 inline bool std::uncaught_exception() throw()
    31   {
    32    /*
    33     * We rely on the CW runtime support to find it is an uncaught exception.
    34     */
    35   return __uncaught_exception();
    36   }
    37 
    38 inline std::exception::exception() __NO_THROW
    39 	{ }
    40 
    41 inline std::exception::exception(const std::exception&) __NO_THROW
    42 	{ }
    43 
    44 inline std::exception& std::exception::operator=(const std::exception&) __NO_THROW
    45 	{
    46 	return *this;
    47 	}
    48 
    49 inline std::exception::~exception() __NO_THROW
    50 	{ }
    51 
    52 inline const char* std::exception::what() const __NO_THROW
    53 	{ 
    54 	return "class exception";
    55 	}
    56 
    57 
    58 inline std::bad_exception::bad_exception() __NO_THROW 
    59 	{}
    60 
    61 inline std::bad_exception::bad_exception(const std::bad_exception&) __NO_THROW 
    62 	{}
    63 
    64 inline std::bad_exception::~bad_exception() __NO_THROW 
    65 	{}     
    66 
    67 inline std::bad_exception& std::bad_exception::operator=(const std::bad_exception&) __NO_THROW
    68 	{
    69 	return *this;
    70 	}
    71 
    72 inline const char* std::bad_exception::what() const __NO_THROW
    73 	{ 
    74 	return "class bad_exception";
    75 	}
    76 
    77 #endif //__EXCEPTION_WINSCW_