X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Finclude_exp%2Fexception;h=9e1469d0c88f2675db39ff67fafe1a1389246149;hb=ca9a575116285753b48fd8e0ae6dcdbf8a4af5b1;hp=0beb016059bdb1a992be32851704e79f6fea72ce;hpb=2f3e82a7b2847e6ff7d65e73295bf3d6469236ab;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc++.so_src/include_exp/exception b/Usermode/Libraries/libc++.so_src/include_exp/exception index 0beb0160..9e1469d0 100644 --- a/Usermode/Libraries/libc++.so_src/include_exp/exception +++ b/Usermode/Libraries/libc++.so_src/include_exp/exception @@ -10,23 +10,35 @@ #define noexcept throw() -#include "string" - namespace std { class exception { - string m_what_str; public: exception() noexcept; exception(const exception& e) noexcept; exception& operator= (const exception& e) noexcept; virtual ~exception() noexcept; virtual const char* what() const noexcept; -protected: - exception(const string& what_str) 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