diff options
author | anonymous <local@localhost> | 2010-06-30 19:09:37 +0700 |
---|---|---|
committer | anonymous <local@localhost> | 2010-07-02 22:14:18 +0700 |
commit | 14a33592c267fe9dc277412444525f3fcfe14f15 (patch) | |
tree | 02d89d3f183f8a3189012a585402fa088cda728b /src | |
parent | 6db7d4e96849fe2ccd17ef75295a711101e191cb (diff) | |
download | libcxxrt-14a33592c267fe9dc277412444525f3fcfe14f15.tar.gz libcxxrt-14a33592c267fe9dc277412444525f3fcfe14f15.tar.bz2 libcxxrt-14a33592c267fe9dc277412444525f3fcfe14f15.tar.xz |
uncaught_exception function is added
Diffstat (limited to 'src')
-rw-r--r-- | src/exception.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/exception.cc b/src/exception.cc index ce06435..27c9e5f 100644 --- a/src/exception.cc +++ b/src/exception.cc @@ -7,6 +7,11 @@ #include "typeinfo.h" #include "dwarf_eh.h" + +namespace std { + void unexpected(); +} + /** * Class of exceptions to distinguish between this and other exception types. * @@ -877,5 +882,9 @@ namespace std } terminate(); } + bool uncaught_exception() throw() { + __cxa_thread_info *info = thread_info(); + return info->globals.uncaughtExceptions != 0; + } } |