Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/external/bsd/libc++/dist/libcxxrt/src C++17 EH support
details: https://anonhg.NetBSD.org/src-all/rev/c0baedb5128f
branches: trunk
changeset: 933225:c0baedb5128f
user: Joerg Sonnenberger <joerg%bec.de@localhost>
date: Wed May 13 19:31:25 2020 +0200
description:
C++17 EH support
diffstat:
external/bsd/libc++/dist/libcxxrt/src/exception.cc | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r c39afce6d5fd -r c0baedb5128f external/bsd/libc++/dist/libcxxrt/src/exception.cc
--- a/external/bsd/libc++/dist/libcxxrt/src/exception.cc Fri May 15 16:10:13 2020 +0200
+++ b/external/bsd/libc++/dist/libcxxrt/src/exception.cc Wed May 13 19:31:25 2020 +0200
@@ -1472,6 +1472,15 @@
return info->globals.uncaughtExceptions != 0;
}
/**
+ * Returns the number of exceptions currently being thrown that have not
+ * been caught. This can occur inside a nested catch statement.
+ */
+ int uncaught_exceptions() throw()
+ {
+ __cxa_thread_info *info = thread_info();
+ return info->globals.uncaughtExceptions;
+ }
+ /**
* Returns the current unexpected handler.
*/
unexpected_handler get_unexpected() throw()
Home |
Main Index |
Thread Index |
Old Index