2 // Copyright Oliver Kowalke 2014.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_COROUTINES2_DETAIL_FORCED_UNWIND_HPP
8 #define BOOST_COROUTINES2_DETAIL_FORCED_UNWIND_HPP
12 #include <boost/assert.hpp>
13 #include <boost/config.hpp>
15 #include <boost/context/execution_context.hpp>
17 #ifdef BOOST_HAS_ABI_HEADERS
18 # include BOOST_ABI_PREFIX
22 namespace coroutines2 {
25 struct forced_unwind {};
28 void * unwind_coroutine( void * data) {
29 throw forced_unwind{};
35 #ifdef BOOST_HAS_ABI_HEADERS
36 # include BOOST_ABI_SUFFIX
39 #endif // BOOST_COROUTINES2_DETAIL_FORCED_UNWIND_HPP