xref: /freebsd/contrib/llvm-project/libcxx/src/functional.cpp (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
1349cc55cSDimitry Andric //===----------------------------------------------------------------------===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric 
9*81ad6265SDimitry Andric #include <functional>
100b57cec5SDimitry Andric 
110b57cec5SDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD
120b57cec5SDimitry Andric 
130b57cec5SDimitry Andric #ifdef _LIBCPP_ABI_BAD_FUNCTION_CALL_KEY_FUNCTION
14fe6060f1SDimitry Andric bad_function_call::~bad_function_call() noexcept
150b57cec5SDimitry Andric {
160b57cec5SDimitry Andric }
17349cc55cSDimitry Andric #endif
180b57cec5SDimitry Andric 
19349cc55cSDimitry Andric #ifdef _LIBCPP_ABI_BAD_FUNCTION_CALL_GOOD_WHAT_MESSAGE
200b57cec5SDimitry Andric const char*
21fe6060f1SDimitry Andric bad_function_call::what() const noexcept
220b57cec5SDimitry Andric {
230b57cec5SDimitry Andric     return "std::bad_function_call";
240b57cec5SDimitry Andric }
250b57cec5SDimitry Andric #endif
260b57cec5SDimitry Andric 
270b57cec5SDimitry Andric _LIBCPP_END_NAMESPACE_STD
28