Install msysDVLPR-1.0.0-alpha-1
[msysgit.git] / lib / gcc-lib / i686-pc-msys / 2.95.3-1 / include / exception
blob32efb9f82caefe6066633451af68aeb39c479af4
1 // Exception Handling support header for -*- C++ -*-
2 // Copyright (C) 1995, 96-97, 1998 Free Software Foundation
4 #ifndef __EXCEPTION__
5 #define __EXCEPTION__
7 #pragma interface "exception"
9 extern "C++" {
11 namespace std {
13 class exception {
14 public:
15   exception () { }
16   virtual ~exception () { }
17   virtual const char* what () const;
20 class bad_exception : public exception {
21 public:
22   bad_exception () { }
23   virtual ~bad_exception () { }
26 typedef void (*terminate_handler) ();
27 typedef void (*unexpected_handler) ();
29 terminate_handler set_terminate (terminate_handler);
30 void terminate () __attribute__ ((__noreturn__));
31 unexpected_handler set_unexpected (unexpected_handler);
32 void unexpected () __attribute__ ((__noreturn__));
33 bool uncaught_exception ();
35 } // namespace std
37 } // extern "C++"
39 #endif