xref: /freebsd/contrib/llvm-project/libcxx/src/functional.cpp (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include <functional>
10 
11 _LIBCPP_BEGIN_NAMESPACE_STD
12 
13 #ifdef _LIBCPP_ABI_BAD_FUNCTION_CALL_KEY_FUNCTION
14 bad_function_call::~bad_function_call() noexcept
15 {
16 }
17 #endif
18 
19 #ifdef _LIBCPP_ABI_BAD_FUNCTION_CALL_GOOD_WHAT_MESSAGE
20 const char*
21 bad_function_call::what() const noexcept
22 {
23     return "std::bad_function_call";
24 }
25 #endif
26 
27 _LIBCPP_END_NAMESPACE_STD
28