blob: ca1079cdd88de87a23c54319b7fe757e94b4cb7f [file] [log] [blame]
Louis Dionne9bd93882021-11-17 16:25:01 -05001//===----------------------------------------------------------------------===//
Shoaib Meenaic130eaf2017-03-28 19:33:31 +00002//
Chandler Carruthd2012102019-01-19 10:56:40 +00003// 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
Shoaib Meenaic130eaf2017-03-28 19:33:31 +00006//
7//===----------------------------------------------------------------------===//
8
Arthur O'Dwyercf9bf392022-02-11 13:00:39 -05009#include <functional>
Shoaib Meenaic130eaf2017-03-28 19:33:31 +000010
11_LIBCPP_BEGIN_NAMESPACE_STD
12
13#ifdef _LIBCPP_ABI_BAD_FUNCTION_CALL_KEY_FUNCTION
Louis Dionne65358e12021-03-01 12:09:45 -050014bad_function_call::~bad_function_call() noexcept
Shoaib Meenaic130eaf2017-03-28 19:33:31 +000015{
16}
Konstantin Varlamovd96c2d22021-11-15 12:40:55 -080017#endif
Shoaib Meenaic130eaf2017-03-28 19:33:31 +000018
Konstantin Varlamovd96c2d22021-11-15 12:40:55 -080019#ifdef _LIBCPP_ABI_BAD_FUNCTION_CALL_GOOD_WHAT_MESSAGE
Shoaib Meenaic130eaf2017-03-28 19:33:31 +000020const char*
Louis Dionne65358e12021-03-01 12:09:45 -050021bad_function_call::what() const noexcept
Shoaib Meenaic130eaf2017-03-28 19:33:31 +000022{
23 return "std::bad_function_call";
24}
25#endif
26
27_LIBCPP_END_NAMESPACE_STD