exception.hpp 722 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright Oliver Kowalke 2014.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_CONTEXT_DETAIL_EXCEPTION_H
  6. #define BOOST_CONTEXT_DETAIL_EXCEPTION_H
  7. #include <boost/config.hpp>
  8. #include <boost/context/detail/fcontext.hpp>
  9. #ifdef BOOST_HAS_ABI_HEADERS
  10. # include BOOST_ABI_PREFIX
  11. #endif
  12. namespace boost {
  13. namespace context {
  14. namespace detail {
  15. struct forced_unwind {
  16. fcontext_t fctx;
  17. forced_unwind( fcontext_t fctx_) :
  18. fctx( fctx_) {
  19. }
  20. };
  21. }}}
  22. #ifdef BOOST_HAS_ABI_HEADERS
  23. #include BOOST_ABI_SUFFIX
  24. #endif
  25. #endif // BOOST_CONTEXT_DETAIL_EXCEPTION_H