diff options
Diffstat (limited to 'boost/coroutine2/segmented_stack.hpp')
-rw-r--r-- | boost/coroutine2/segmented_stack.hpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/boost/coroutine2/segmented_stack.hpp b/boost/coroutine2/segmented_stack.hpp new file mode 100644 index 0000000000..a252ae445f --- /dev/null +++ b/boost/coroutine2/segmented_stack.hpp @@ -0,0 +1,37 @@ + +// Copyright Oliver Kowalke 2014. +// Distributed under the Boost Software License, Version 1.0. +// (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + +#ifndef BOOST_COROUTINES2_SEGMENTED_H +#define BOOST_COROUTINES2_SEGMENTED_H + +#include <exception> + +#include <boost/assert.hpp> +#include <boost/config.hpp> +#include <boost/context/segmented_stack.hpp> + +#include <boost/coroutine2/detail/coroutine.hpp> + +#ifdef BOOST_HAS_ABI_HEADERS +# include BOOST_ABI_PREFIX +#endif + +namespace boost { +namespace coroutines2 { + +#if defined(BOOST_USE_SEGMENTED_STACKS) +# if ! defined(BOOST_WINDOWS) +typedef boost::context::segmented_stack segmented_stack; +# endif +#endif + +}} + +#ifdef BOOST_HAS_ABI_HEADERS +# include BOOST_ABI_SUFFIX +#endif + +#endif // BOOST_COROUTINES2_SEGMENTED_H |