mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-09 23:24:01 +00:00
add preprocessor error if execution_context is not supported
This commit is contained in:
parent
bdc7cb82e5
commit
ca6d6c2ec1
@ -8,6 +8,7 @@
|
||||
#define BOOST_COROUTINES2_DETAIL_CONFIG_H
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/context/detail/config.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
#ifdef BOOST_COROUTINES2_DECL
|
||||
@ -43,7 +44,8 @@
|
||||
# define BOOST_COROUTINES2_SEGMENTS 10
|
||||
#endif
|
||||
|
||||
#define BOOST_COROUTINES2_UNIDIRECT
|
||||
#define BOOST_COROUTINES2_SYMMETRIC
|
||||
#if defined(BOOST_CONTEXT_NO_EXECUTION_CONTEXT)
|
||||
# error "execution_context from boost.context not supported"
|
||||
#endif
|
||||
|
||||
#endif // BOOST_COROUTINES2_DETAIL_CONFIG_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user