blob: fbc620058bcd5af991342c1c662411ac173903f3 [file] [log] [blame]
Shoaib Meenaic130eaf2017-03-28 19:33:31 +00001//===----------------------- functional.cpp -------------------------------===//
2//
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
9#include "functional"
10
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