summaryrefslogtreecommitdiffstats
path: root/libcxx/include/exception
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2015-06-02 15:33:38 +0000
committerMarshall Clow <mclow.lists@gmail.com>2015-06-02 15:33:38 +0000
commit89102f0fa96c1d3b53bf289802167fa78baaa83d (patch)
tree4def1737c86f0993c7cebf597e0b6cc9e53eacf8 /libcxx/include/exception
parent1feab0f95ea0202f95a555a86f5dd60db4a8a5c8 (diff)
downloadbcm5719-llvm-89102f0fa96c1d3b53bf289802167fa78baaa83d.tar.gz
bcm5719-llvm-89102f0fa96c1d3b53bf289802167fa78baaa83d.zip
Implement uncaught_exceptions() using the newly added hooks in libc++abi, when available
llvm-svn: 238846
Diffstat (limited to 'libcxx/include/exception')
-rw-r--r--libcxx/include/exception4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/include/exception b/libcxx/include/exception
index ef2b969b742..39d251ec499 100644
--- a/libcxx/include/exception
+++ b/libcxx/include/exception
@@ -48,7 +48,8 @@ terminate_handler set_terminate(terminate_handler f ) noexcept;
terminate_handler get_terminate() noexcept;
[[noreturn]] void terminate() noexcept;
-bool uncaught_exception() noexcept;
+bool uncaught_exception() noexcept;
+int uncaught_exceptions() noexcept; // C++17
typedef unspecified exception_ptr;
@@ -115,6 +116,7 @@ _LIBCPP_FUNC_VIS terminate_handler get_terminate() _NOEXCEPT;
_LIBCPP_NORETURN _LIBCPP_FUNC_VIS void terminate() _NOEXCEPT;
_LIBCPP_FUNC_VIS bool uncaught_exception() _NOEXCEPT;
+_LIBCPP_FUNC_VIS int uncaught_exceptions() _NOEXCEPT;
class _LIBCPP_TYPE_VIS exception_ptr;
OpenPOWER on IntegriCloud