brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · da8abba Raw
39 lines · c
1//===----------------------------------------------------------------------===//2//3// 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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef _LIBCPP___CXX03___EXCEPTION_OPERATIONS_H10#define _LIBCPP___CXX03___EXCEPTION_OPERATIONS_H11 12#include <__cxx03/__config>13#include <__cxx03/cstddef>14 15#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)16#  pragma GCC system_header17#endif18 19namespace std { // purposefully not using versioning namespace20using unexpected_handler = void (*)();21_LIBCPP_EXPORTED_FROM_ABI unexpected_handler set_unexpected(unexpected_handler) _NOEXCEPT;22_LIBCPP_EXPORTED_FROM_ABI unexpected_handler get_unexpected() _NOEXCEPT;23_LIBCPP_NORETURN _LIBCPP_EXPORTED_FROM_ABI void unexpected();24 25using terminate_handler = void (*)();26_LIBCPP_EXPORTED_FROM_ABI terminate_handler set_terminate(terminate_handler) _NOEXCEPT;27_LIBCPP_EXPORTED_FROM_ABI terminate_handler get_terminate() _NOEXCEPT;28 29_LIBCPP_EXPORTED_FROM_ABI bool uncaught_exception() _NOEXCEPT;30_LIBCPP_EXPORTED_FROM_ABI int uncaught_exceptions() _NOEXCEPT;31 32class _LIBCPP_EXPORTED_FROM_ABI exception_ptr;33 34_LIBCPP_EXPORTED_FROM_ABI exception_ptr current_exception() _NOEXCEPT;35_LIBCPP_NORETURN _LIBCPP_EXPORTED_FROM_ABI void rethrow_exception(exception_ptr);36} // namespace std37 38#endif // _LIBCPP___CXX03___EXCEPTION_OPERATIONS_H39