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 #ifdef BOOST_HAS_ABI_HEADERS
16 # include BOOST_ABI_PREFIX
20 namespace coroutines2 {
23 struct forced_unwind {};
26 void * unwind_coroutine( void * data) {
27 throw forced_unwind{};
33 #ifdef BOOST_HAS_ABI_HEADERS
34 # include BOOST_ABI_SUFFIX
37 #endif // BOOST_COROUTINES2_DETAIL_FORCED_UNWIND_HPP