9e1469d0c88f2675db39ff67fafe1a1389246149
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / exception
1 /*
2  * Acess2 C++ Library
3  * - By John Hodge (thePowersGang)
4  *
5  * exception (header)
6  * - C++'s base exception type
7  */
8 #ifndef _LIBCXX_EXCEPTION_
9 #define _LIBCXX_EXCEPTION_
10
11 #define noexcept        throw()
12
13 namespace std {
14
15 class exception
16 {
17 public:
18         exception() noexcept;
19         exception(const exception& e) noexcept;
20         exception& operator= (const exception& e) noexcept;
21         virtual ~exception() noexcept;
22         virtual const char* what() const noexcept;
23 };
24
25 class bad_exception:
26         public exception
27 {
28 public:
29         bad_exception() noexcept;
30         const char* what() const noexcept;
31 };
32
33 typedef void (*terminate_handler)();
34 typedef void (*unexpected_handler)();
35
36 extern void set_terminate(terminate_handler f) throw();
37 extern void set_unexpected(unexpected_handler f) throw();
38 extern void terminate();
39 extern void unexpected();
40 extern bool uncaught_exception() throw();
41
42 };      // namespace std
43
44 #endif
45 // vim: ft=cpp
46

UCC git Repository :: git.ucc.asn.au