blob: e40e4be97c305f3750c8e153eb69b182b65e033b [file] [log] [blame]
Howard Hinnantb80931e2011-12-07 21:16:40 +00001//===------------------------- cxa_handlers.cpp ---------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//
9// This file implements the functionality associated with the terminate_handler,
10// unexpected_handler, and new_handler.
11//===----------------------------------------------------------------------===//
12
13#include <exception>
14
15namespace std
16{
17
18_LIBCPP_HIDDEN
19_ATTRIBUTE(noreturn)
20void
21__unexpected(unexpected_handler func);
22
23_LIBCPP_HIDDEN
24_ATTRIBUTE(noreturn)
25void
26__terminate(terminate_handler func) _NOEXCEPT;
27
28} // std