2 //===----------------------------------------------------------------------===//
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
15 exception_ptr::~exception_ptr() noexcept
17 # warning exception_ptr not yet implemented
18 fprintf(stderr, "exception_ptr not yet implemented\n");
22 exception_ptr::exception_ptr(const exception_ptr& other) noexcept
23 : __ptr_(other.__ptr_)
25 # warning exception_ptr not yet implemented
26 fprintf(stderr, "exception_ptr not yet implemented\n");
30 exception_ptr& exception_ptr::operator=(const exception_ptr& other) noexcept
32 # warning exception_ptr not yet implemented
33 fprintf(stderr, "exception_ptr not yet implemented\n");
37 nested_exception::nested_exception() noexcept
38 : __ptr_(current_exception())
42 #if !defined(__GLIBCXX__)
44 nested_exception::~nested_exception() noexcept
52 nested_exception::rethrow_nested() const
54 # warning exception_ptr not yet implemented
55 fprintf(stderr, "exception_ptr not yet implemented\n");
58 if (__ptr_ == nullptr)
60 rethrow_exception(__ptr_);
64 exception_ptr current_exception() noexcept
66 # warning exception_ptr not yet implemented
67 fprintf(stderr, "exception_ptr not yet implemented\n");
72 void rethrow_exception(exception_ptr p)
74 # warning exception_ptr not yet implemented
75 fprintf(stderr, "exception_ptr not yet implemented\n");