aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/libcxx/src/support/runtime/exception_libcxxabi.ipp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/libcxx/src/support/runtime/exception_libcxxabi.ipp')
-rw-r--r--contrib/llvm-project/libcxx/src/support/runtime/exception_libcxxabi.ipp15
1 files changed, 7 insertions, 8 deletions
diff --git a/contrib/llvm-project/libcxx/src/support/runtime/exception_libcxxabi.ipp b/contrib/llvm-project/libcxx/src/support/runtime/exception_libcxxabi.ipp
index ee15e437e602..df6bd6574bde 100644
--- a/contrib/llvm-project/libcxx/src/support/runtime/exception_libcxxabi.ipp
+++ b/contrib/llvm-project/libcxx/src/support/runtime/exception_libcxxabi.ipp
@@ -8,20 +8,19 @@
//===----------------------------------------------------------------------===//
#ifndef _LIBCPPABI_VERSION
-#error this header can only be used with libc++abi
+# error this header can only be used with libc++abi
#endif
namespace std {
bool uncaught_exception() noexcept { return uncaught_exceptions() > 0; }
-int uncaught_exceptions() noexcept
-{
-# if _LIBCPPABI_VERSION > 1001
- return __cxa_uncaught_exceptions();
-# else
- return __cxa_uncaught_exception() ? 1 : 0;
-# endif
+int uncaught_exceptions() noexcept {
+#if _LIBCPPABI_VERSION > 1001
+ return __cxa_uncaught_exceptions();
+#else
+ return __cxa_uncaught_exception() ? 1 : 0;
+#endif
}
} // namespace std