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/a8bcc62d0d84
branches:  trunk
changeset: 933770:a8bcc62d0d84
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 f1c701bb830e -r a8bcc62d0d84 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