diff options
author | YamaArashi <shadow962@live.com> | 2016-01-06 01:47:28 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-01-06 01:47:28 -0800 |
commit | be8b04496302184c6e8f04d6179f9c3afc50aeb6 (patch) | |
tree | 726e2468c0c07add773c0dbd86ab6386844259ae /gcc/cp/inc/exception |
initial commit
Diffstat (limited to 'gcc/cp/inc/exception')
-rwxr-xr-x | gcc/cp/inc/exception | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gcc/cp/inc/exception b/gcc/cp/inc/exception new file mode 100755 index 0000000..32efb9f --- /dev/null +++ b/gcc/cp/inc/exception @@ -0,0 +1,39 @@ +// Exception Handling support header for -*- C++ -*- +// Copyright (C) 1995, 96-97, 1998 Free Software Foundation + +#ifndef __EXCEPTION__ +#define __EXCEPTION__ + +#pragma interface "exception" + +extern "C++" { + +namespace std { + +class exception { +public: + exception () { } + virtual ~exception () { } + virtual const char* what () const; +}; + +class bad_exception : public exception { +public: + bad_exception () { } + virtual ~bad_exception () { } +}; + +typedef void (*terminate_handler) (); +typedef void (*unexpected_handler) (); + +terminate_handler set_terminate (terminate_handler); +void terminate () __attribute__ ((__noreturn__)); +unexpected_handler set_unexpected (unexpected_handler); +void unexpected () __attribute__ ((__noreturn__)); +bool uncaught_exception (); + +} // namespace std + +} // extern "C++" + +#endif |