summaryrefslogtreecommitdiffstats
path: root/contrib/libstdc++/libsupc++/exception
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2007-08-14 02:49:11 +0000
committerkan <kan@FreeBSD.org>2007-08-14 02:49:11 +0000
commit6012218763eac328f0b776413bf0fda0032c6a3e (patch)
treed56f6a8737f66e915d38a8db688eb0d08bf6e32e /contrib/libstdc++/libsupc++/exception
parentd2ff90cc580c62afb8528917c1c80ac49d9aaa01 (diff)
downloadFreeBSD-src-6012218763eac328f0b776413bf0fda0032c6a3e.zip
FreeBSD-src-6012218763eac328f0b776413bf0fda0032c6a3e.tar.gz
GCC 4.2.1 release C++ standard library and runtime support code.
Diffstat (limited to 'contrib/libstdc++/libsupc++/exception')
-rw-r--r--contrib/libstdc++/libsupc++/exception6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/libstdc++/libsupc++/exception b/contrib/libstdc++/libsupc++/exception
index 2046300..a7e2db7 100644
--- a/contrib/libstdc++/libsupc++/exception
+++ b/contrib/libstdc++/libsupc++/exception
@@ -58,6 +58,7 @@ namespace std
public:
exception() throw() { }
virtual ~exception() throw();
+
/** Returns a C-style character string describing the general cause
* of the current error. */
virtual const char* what() const throw();
@@ -69,26 +70,31 @@ namespace std
{
public:
bad_exception() throw() { }
+
// This declaration is not useless:
// http://gcc.gnu.org/onlinedocs/gcc-3.0.2/gcc_6.html#SEC118
virtual ~bad_exception() throw();
+
// See comment in eh_exception.cc.
virtual const char* what() const throw();
};
/// If you write a replacement %terminate handler, it must be of this type.
typedef void (*terminate_handler) ();
+
/// If you write a replacement %unexpected handler, it must be of this type.
typedef void (*unexpected_handler) ();
/// Takes a new handler function as an argument, returns the old function.
terminate_handler set_terminate(terminate_handler) throw();
+
/** The runtime will call this function if %exception handling must be
* abandoned for any reason. It can also be called by the user. */
void terminate() __attribute__ ((__noreturn__));
/// Takes a new handler function as an argument, returns the old function.
unexpected_handler set_unexpected(unexpected_handler) throw();
+
/** The runtime will call this function if an %exception is thrown which
* violates the function's %exception specification. */
void unexpected() __attribute__ ((__noreturn__));
OpenPOWER on IntegriCloud