]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/coroutine2/detail/forced_unwind.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / coroutine2 / detail / forced_unwind.hpp
1
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)
6
7 #ifndef BOOST_COROUTINES2_DETAIL_FORCED_UNWIND_HPP
8 #define BOOST_COROUTINES2_DETAIL_FORCED_UNWIND_HPP
9
10 #include <exception>
11
12 #include <boost/assert.hpp>
13 #include <boost/config.hpp>
14
15 #ifdef BOOST_HAS_ABI_HEADERS
16 # include BOOST_ABI_PREFIX
17 #endif
18
19 namespace boost {
20 namespace coroutines2 {
21 namespace detail {
22
23 struct forced_unwind {};
24
25 inline
26 void * unwind_coroutine( void * data) {
27 throw forced_unwind{};
28 return data;
29 }
30
31 }}}
32
33 #ifdef BOOST_HAS_ABI_HEADERS
34 # include BOOST_ABI_SUFFIX
35 #endif
36
37 #endif // BOOST_COROUTINES2_DETAIL_FORCED_UNWIND_HPP