File tree Expand file tree Collapse file tree 4 files changed +6
-9
lines changed
libcxx/include/__exception Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 1616#include < __memory/construct_at.h>
1717#include < __type_traits/decay.h>
1818#include < __type_traits/is_pointer.h>
19+ #include < __verbose_abort> // used by exception_ptr_{unimplemented,cxxabi}.ipp
1920#include < cstdlib>
2021#include < typeinfo>
2122
Original file line number Diff line number Diff line change 77//
88// ===----------------------------------------------------------------------===//
99
10- #include < __exception/terminate.h>
11-
1210namespace __cxxabiv1 {
1311
1412extern " C" {
@@ -44,7 +42,7 @@ _LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr current_exception() _NOEXCEPT
4442_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE void rethrow_exception (exception_ptr __ptr) {
4543 __cxxabiv1::__cxa_rethrow_primary_exception (__ptr.__ptr_ );
4644 // if __ptr.__ptr_ is NULL, above returns so we terminate.
47- terminate ( );
45+ _LIBCPP_VERBOSE_ABORT ( " tried to rethrow an empty exception_ptr \n " );
4846}
4947
5048} // namespace std
Original file line number Diff line number Diff line change 77//
88// ===----------------------------------------------------------------------===//
99
10- #include < stdlib.h>
11-
1210_LIBCPP_CRT_FUNC void __cdecl __ExceptionPtrCreate (void *);
1311_LIBCPP_CRT_FUNC void __cdecl __ExceptionPtrDestroy (void *);
1412_LIBCPP_CRT_FUNC void __cdecl __ExceptionPtrCopy (void *, const void *);
Original file line number Diff line number Diff line change @@ -17,20 +17,20 @@ namespace std {
1717
1818_LIBCPP_HIDE_FROM_ABI _LIBCPP_ALWAYS_INLINE inline void exception_ptr::__increment_refcount (void * __ptr) _NOEXCEPT {
1919 if (__ptr)
20- __libcpp_verbose_abort (" exception_ptr not yet implemented\n " );
20+ _LIBCPP_VERBOSE_ABORT (" exception_ptr not yet implemented\n " );
2121}
2222
2323_LIBCPP_HIDE_FROM_ABI _LIBCPP_ALWAYS_INLINE inline void exception_ptr::__decrement_refcount (void * __ptr) _NOEXCEPT {
2424 if (__ptr)
25- __libcpp_verbose_abort (" exception_ptr not yet implemented\n " );
25+ _LIBCPP_VERBOSE_ABORT (" exception_ptr not yet implemented\n " );
2626}
2727
2828_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr current_exception () _NOEXCEPT {
29- __libcpp_verbose_abort (" exception_ptr not yet implemented\n " );
29+ _LIBCPP_VERBOSE_ABORT (" exception_ptr not yet implemented\n " );
3030}
3131
3232_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE [[noreturn]] void rethrow_exception (exception_ptr p) {
33- __libcpp_verbose_abort (" exception_ptr not yet implemented\n " );
33+ _LIBCPP_VERBOSE_ABORT (" exception_ptr not yet implemented\n " );
3434}
3535
3636} // namespace std
You can’t perform that action at this time.
0 commit comments