aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libcxxabi/src/cxa_handlers.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'system/lib/libcxxabi/src/cxa_handlers.hpp')
-rw-r--r--system/lib/libcxxabi/src/cxa_handlers.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/system/lib/libcxxabi/src/cxa_handlers.hpp b/system/lib/libcxxabi/src/cxa_handlers.hpp
new file mode 100644
index 00000000..a7f582c0
--- /dev/null
+++ b/system/lib/libcxxabi/src/cxa_handlers.hpp
@@ -0,0 +1,26 @@
+//===------------------------- cxa_handlers.cpp ---------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//
+// This file implements the functionality associated with the terminate_handler,
+// unexpected_handler, and new_handler.
+//===----------------------------------------------------------------------===//
+
+#include <exception>
+
+namespace std
+{
+
+__attribute__((visibility("hidden"), noreturn))
+void
+__unexpected(unexpected_handler func);
+
+__attribute__((visibility("hidden"), noreturn))
+void
+__terminate(terminate_handler func) _NOEXCEPT;
+
+} // std