diff options
author | Mikhail Borisov <[email protected]> | 2022-02-10 16:45:40 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:40 +0300 |
commit | 5d50718e66d9c037dc587a0211110b7d25a66185 (patch) | |
tree | e98df59de24d2ef7c77baed9f41e4875a2fef972 /contrib/libs/cxxsupp/libcxx/glibcxx_eh_cxx17.cpp | |
parent | a6a92afe03e02795227d2641b49819b687f088f8 (diff) |
Restoring authorship annotation for Mikhail Borisov <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/glibcxx_eh_cxx17.cpp')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/glibcxx_eh_cxx17.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/glibcxx_eh_cxx17.cpp b/contrib/libs/cxxsupp/libcxx/glibcxx_eh_cxx17.cpp index cc2bd0d223a..5e5ad083ba9 100644 --- a/contrib/libs/cxxsupp/libcxx/glibcxx_eh_cxx17.cpp +++ b/contrib/libs/cxxsupp/libcxx/glibcxx_eh_cxx17.cpp @@ -1,17 +1,17 @@ -#include <cxxabi.h> - -/** - * libc++ expects std::uncaught_exceptions() to be provided by C++ runtime library. - * - * GCC versions prior to GCC 6 did not provide this function yet, but it can be - * implemented using its API. - * - * This implementation should cover ubuntu-12, ubuntu-14, ubuntu-16. - */ - -namespace std { - int uncaught_exceptions() noexcept { - const auto* globals{__cxxabiv1::__cxa_get_globals()}; - return static_cast<int>(globals->uncaughtExceptions); - } -} +#include <cxxabi.h> + +/** + * libc++ expects std::uncaught_exceptions() to be provided by C++ runtime library. + * + * GCC versions prior to GCC 6 did not provide this function yet, but it can be + * implemented using its API. + * + * This implementation should cover ubuntu-12, ubuntu-14, ubuntu-16. + */ + +namespace std { + int uncaught_exceptions() noexcept { + const auto* globals{__cxxabiv1::__cxa_get_globals()}; + return static_cast<int>(globals->uncaughtExceptions); + } +} |