Howard Hinnant | b80931e | 2011-12-07 21:16:40 +0000 | [diff] [blame^] | 1 | //===------------------------- 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 | |
| 15 | namespace std |
| 16 | { |
| 17 | |
| 18 | _LIBCPP_HIDDEN |
| 19 | _ATTRIBUTE(noreturn) |
| 20 | void |
| 21 | __unexpected(unexpected_handler func); |
| 22 | |
| 23 | _LIBCPP_HIDDEN |
| 24 | _ATTRIBUTE(noreturn) |
| 25 | void |
| 26 | __terminate(terminate_handler func) _NOEXCEPT; |
| 27 | |
| 28 | } // std |