Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / exception
diff --git a/Usermode/Libraries/libc++.so_src/include_exp/exception b/Usermode/Libraries/libc++.so_src/include_exp/exception
new file mode 100644 (file)
index 0000000..9e1469d
--- /dev/null
@@ -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
+

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