X-Git-Url: https://git.ucc.asn.au/?p=tpg%2Facess2.git;a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Finclude_exp%2Fexception;fp=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Finclude_exp%2Fexception;h=9e1469d0c88f2675db39ff67fafe1a1389246149;hp=0000000000000000000000000000000000000000;hb=845b6f9d90bb87b5e760e4d49aa93b0e003ab750;hpb=67a7fe2bb79eceaf10c572a99bd8345c4e81cf5b diff --git a/Usermode/Libraries/libc++.so_src/include_exp/exception b/Usermode/Libraries/libc++.so_src/include_exp/exception new file mode 100644 index 00000000..9e1469d0 --- /dev/null +++ b/Usermode/Libraries/libc++.so_src/include_exp/exception @@ -0,0 +1,46 @@ +/* + * Acess2 C++ Library + * - By John Hodge (thePowersGang) + * + * exception (header) + * - C++'s base exception type + */ +#ifndef _LIBCXX_EXCEPTION_ +#define _LIBCXX_EXCEPTION_ + +#define noexcept throw() + +namespace std { + +class exception +{ +public: + exception() noexcept; + exception(const exception& e) noexcept; + exception& operator= (const exception& e) noexcept; + virtual ~exception() noexcept; + virtual const char* what() const noexcept; +}; + +class bad_exception: + public exception +{ +public: + bad_exception() noexcept; + const char* what() const noexcept; +}; + +typedef void (*terminate_handler)(); +typedef void (*unexpected_handler)(); + +extern void set_terminate(terminate_handler f) throw(); +extern void set_unexpected(unexpected_handler f) throw(); +extern void terminate(); +extern void unexpected(); +extern bool uncaught_exception() throw(); + +}; // namespace std + +#endif +// vim: ft=cpp +