xref: /freebsd/contrib/llvm-project/libcxx/src/functional.cpp (revision cb14a3fe5122c879eae1fb480ed7ce82a699ddb6)
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 
981ad6265SDimitry Andric #include <functional>
100b57cec5SDimitry Andric 
110b57cec5SDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD
120b57cec5SDimitry Andric 
130b57cec5SDimitry Andric #ifdef _LIBCPP_ABI_BAD_FUNCTION_CALL_KEY_FUNCTION
14*cb14a3feSDimitry Andric bad_function_call::~bad_function_call() noexcept {}
15349cc55cSDimitry Andric #endif
160b57cec5SDimitry Andric 
17349cc55cSDimitry Andric #ifdef _LIBCPP_ABI_BAD_FUNCTION_CALL_GOOD_WHAT_MESSAGE
18*cb14a3feSDimitry Andric const char* bad_function_call::what() const noexcept { return "std::bad_function_call"; }
190b57cec5SDimitry Andric #endif
200b57cec5SDimitry Andric 
210b57cec5SDimitry Andric _LIBCPP_END_NAMESPACE_STD
22