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/58a75afd108b
branches:  trunk
changeset: 932672:58a75afd108b
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 f532e9b62a19 -r 58a75afd108b external/bsd/libc++/dist/libcxxrt/src/exception.cc
--- a/external/bsd/libc++/dist/libcxxrt/src/exception.cc        Mon May 11 17:16:16 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