os/ossrv/genericopenlibs/cppstdlib/inc/exception_winscw.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description:
sl@0
    15
* Name        : exception_winscw.h
sl@0
    16
* Part of     : standard c++ library.
sl@0
    17
* This file provides the required declararions/definitions some
sl@0
    18
* of the C++ exception features required of the CW runtime.
sl@0
    19
* 
sl@0
    20
*
sl@0
    21
*/
sl@0
    22
sl@0
    23
sl@0
    24
sl@0
    25
#ifndef __EXCEPTION_WINSCW_
sl@0
    26
#define __EXCEPTION_WINSCW_
sl@0
    27
sl@0
    28
extern "C" IMPORT_C bool __uncaught_exception(void);
sl@0
    29
sl@0
    30
inline bool std::uncaught_exception() throw()
sl@0
    31
  {
sl@0
    32
   /*
sl@0
    33
    * We rely on the CW runtime support to find it is an uncaught exception.
sl@0
    34
    */
sl@0
    35
  return __uncaught_exception();
sl@0
    36
  }
sl@0
    37
sl@0
    38
inline std::exception::exception() __NO_THROW
sl@0
    39
	{ }
sl@0
    40
sl@0
    41
inline std::exception::exception(const std::exception&) __NO_THROW
sl@0
    42
	{ }
sl@0
    43
sl@0
    44
inline std::exception& std::exception::operator=(const std::exception&) __NO_THROW
sl@0
    45
	{
sl@0
    46
	return *this;
sl@0
    47
	}
sl@0
    48
sl@0
    49
inline std::exception::~exception() __NO_THROW
sl@0
    50
	{ }
sl@0
    51
sl@0
    52
inline const char* std::exception::what() const __NO_THROW
sl@0
    53
	{ 
sl@0
    54
	return "class exception";
sl@0
    55
	}
sl@0
    56
sl@0
    57
sl@0
    58
inline std::bad_exception::bad_exception() __NO_THROW 
sl@0
    59
	{}
sl@0
    60
sl@0
    61
inline std::bad_exception::bad_exception(const std::bad_exception&) __NO_THROW 
sl@0
    62
	{}
sl@0
    63
sl@0
    64
inline std::bad_exception::~bad_exception() __NO_THROW 
sl@0
    65
	{}     
sl@0
    66
sl@0
    67
inline std::bad_exception& std::bad_exception::operator=(const std::bad_exception&) __NO_THROW
sl@0
    68
	{
sl@0
    69
	return *this;
sl@0
    70
	}
sl@0
    71
sl@0
    72
inline const char* std::bad_exception::what() const __NO_THROW
sl@0
    73
	{ 
sl@0
    74
	return "class bad_exception";
sl@0
    75
	}
sl@0
    76
sl@0
    77
#endif //__EXCEPTION_WINSCW_