blob: a7f582c0085642d380fe2cb90d2af56f25504737 [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
Howard Hinnantfe907462012-01-24 18:26:29 +000018__attribute__((visibility("hidden"), noreturn))
Howard Hinnantb80931e2011-12-07 21:16:40 +000019void
20__unexpected(unexpected_handler func);
21
Howard Hinnantfe907462012-01-24 18:26:29 +000022__attribute__((visibility("hidden"), noreturn))
Howard Hinnantb80931e2011-12-07 21:16:40 +000023void
24__terminate(terminate_handler func) _NOEXCEPT;
25
26} // std