yield.hpp 482 B

1234567891011121314151617181920212223
  1. //
  2. // yield.hpp
  3. // ~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #include "coroutine.hpp"
  11. #ifndef reenter
  12. # define reenter(c) BOOST_ASIO_CORO_REENTER(c)
  13. #endif
  14. #ifndef yield
  15. # define yield BOOST_ASIO_CORO_YIELD
  16. #endif
  17. #ifndef fork
  18. # define fork BOOST_ASIO_CORO_FORK
  19. #endif