mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-03 19:22:27 +00:00
Release Cosmopolitan v3.6.0
This release is an atomic upgrade to GCC 14.1.0 with C23 and C++23
This commit is contained in:
parent
62ace3623a
commit
5660ec4741
1585 changed files with 117353 additions and 271644 deletions
13
third_party/libcxx/__utility/exception_guard.h
vendored
13
third_party/libcxx/__utility/exception_guard.h
vendored
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include <__assert>
|
||||
#include <__config>
|
||||
#include <__type_traits/is_nothrow_move_constructible.h>
|
||||
#include <__type_traits/is_nothrow_constructible.h>
|
||||
#include <__utility/exchange.h>
|
||||
#include <__utility/move.h>
|
||||
|
||||
|
@ -19,6 +19,9 @@
|
|||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
_LIBCPP_PUSH_MACROS
|
||||
#include <__undef_macros>
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
// __exception_guard is a helper class for writing code with the strong exception guarantee.
|
||||
|
@ -93,8 +96,8 @@ _LIBCPP_CTAD_SUPPORTED_FOR_TYPE(__exception_guard_exceptions);
|
|||
template <class _Rollback>
|
||||
struct __exception_guard_noexceptions {
|
||||
__exception_guard_noexceptions() = delete;
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20
|
||||
_LIBCPP_NODEBUG explicit __exception_guard_noexceptions(_Rollback) {}
|
||||
_LIBCPP_HIDE_FROM_ABI
|
||||
_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_NODEBUG explicit __exception_guard_noexceptions(_Rollback) {}
|
||||
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_NODEBUG
|
||||
__exception_guard_noexceptions(__exception_guard_noexceptions&& __other)
|
||||
|
@ -112,7 +115,7 @@ struct __exception_guard_noexceptions {
|
|||
}
|
||||
|
||||
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_NODEBUG ~__exception_guard_noexceptions() {
|
||||
_LIBCPP_ASSERT(__completed_, "__exception_guard not completed with exceptions disabled");
|
||||
_LIBCPP_ASSERT_INTERNAL(__completed_, "__exception_guard not completed with exceptions disabled");
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -136,4 +139,6 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR __exception_guard<_Rollback> __make_exce
|
|||
|
||||
_LIBCPP_END_NAMESPACE_STD
|
||||
|
||||
_LIBCPP_POP_MACROS
|
||||
|
||||
#endif // _LIBCPP___UTILITY_TRANSACTION_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue