Skip to content

Commit 68f72ea

Browse files
committed
Simlify #warning in exception_unimplemented
1 parent 455a2a6 commit 68f72ea

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

libcxx/src/support/runtime/exception_pointer_unimplemented.ipp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,29 @@
1111

1212
namespace std {
1313

14+
#warning exception_ptr not yet implemented
15+
1416
void exception_ptr::__increment_refcount([[__gnu__::__nonnull__]] _LIBCPP_NOESCAPE void* __ptr) noexcept {
15-
#warning exception_ptr not yet implemented
1617
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
1718
}
1819

1920
void exception_ptr::__decrement_refcount([[__gnu__::__nonnull__]] _LIBCPP_NOESCAPE void* __ptr) noexcept {
20-
#warning exception_ptr not yet implemented
2121
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
2222
}
2323

2424
exception_ptr exception_ptr::__from_native_exception_pointer(void *__e) noexcept {
25-
#warning exception_ptr not yet implemented
2625
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
2726
}
2827

2928
exception_ptr::~exception_ptr() noexcept {
30-
#warning exception_ptr not yet implemented
3129
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
3230
}
3331

3432
exception_ptr::exception_ptr(const exception_ptr& other) noexcept : __ptr_(other.__ptr_) {
35-
#warning exception_ptr not yet implemented
3633
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
3734
}
3835

3936
exception_ptr& exception_ptr::operator=(const exception_ptr& other) noexcept {
40-
#warning exception_ptr not yet implemented
4137
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
4238
}
4339

@@ -50,7 +46,6 @@ nested_exception::~nested_exception() noexcept {}
5046
#endif
5147

5248
[[noreturn]] void nested_exception::rethrow_nested() const {
53-
#warning exception_ptr not yet implemented
5449
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
5550
#if 0
5651
if (__ptr_ == nullptr)
@@ -60,12 +55,10 @@ nested_exception::~nested_exception() noexcept {}
6055
}
6156

6257
exception_ptr current_exception() noexcept {
63-
#warning exception_ptr not yet implemented
6458
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
6559
}
6660

6761
[[noreturn]] void rethrow_exception(exception_ptr p) {
68-
#warning exception_ptr not yet implemented
6962
__libcpp_verbose_abort("exception_ptr not yet implemented\n");
7063
}
7164

0 commit comments

Comments
 (0)