2017-05-10 00:28:40 +02:00
|
|
|
/* Decides between POSIX and Windows for context_stack.
|
2017-03-09 00:59:10 +01:00
|
|
|
*
|
2017-04-06 20:14:52 +02:00
|
|
|
* This file is part of libostd. See COPYING.md for futher information.
|
2017-03-09 00:59:10 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ostd/platform.hh"
|
|
|
|
|
2017-05-12 00:05:18 +02:00
|
|
|
#if defined(OSTD_PLATFORM_WIN32)
|
2017-05-10 00:28:40 +02:00
|
|
|
# include "src/win32/context_stack.cc"
|
2017-05-12 00:05:18 +02:00
|
|
|
#elif defined(OSTD_PLATFORM_POSIX)
|
2017-05-10 00:28:40 +02:00
|
|
|
# include "src/posix/context_stack.cc"
|
2017-03-22 17:31:57 +01:00
|
|
|
#else
|
2017-05-10 00:28:40 +02:00
|
|
|
# error "Unsupported platform"
|
2017-03-09 00:59:10 +01:00
|
|
|
#endif
|
2018-04-21 22:34:21 +02:00
|
|
|
|
|
|
|
namespace ostd {
|
|
|
|
struct coroutine_context;
|
|
|
|
namespace detail {
|
|
|
|
OSTD_EXPORT thread_local coroutine_context *coro_current = nullptr;
|
|
|
|
} /* namespace detail */
|
|
|
|
} /* namespace ostd */
|