segmented_stack.hpp 877 B

1234567891011121314151617181920212223242526272829303132333435363738
  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_COROUTINES2_SEGMENTED_H
  6. #define BOOST_COROUTINES2_SEGMENTED_H
  7. #include <exception>
  8. #include <boost/assert.hpp>
  9. #include <boost/config.hpp>
  10. #include <boost/context/segmented_stack.hpp>
  11. #include <boost/coroutine2/detail/coroutine.hpp>
  12. #ifdef BOOST_HAS_ABI_HEADERS
  13. # include BOOST_ABI_PREFIX
  14. #endif
  15. namespace boost {
  16. namespace coroutines2 {
  17. #if defined(BOOST_USE_SEGMENTED_STACKS)
  18. # if ! defined(BOOST_WINDOWS)
  19. using segmented_stack = boost::context::segmented_stack;
  20. using default_stack = boost::context::default_stack;
  21. # endif
  22. #endif
  23. }}
  24. #ifdef BOOST_HAS_ABI_HEADERS
  25. # include BOOST_ABI_SUFFIX
  26. #endif
  27. #endif // BOOST_COROUTINES2_SEGMENTED_H