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
|
#define BOOST_COROUTINES2_DETAIL_CONFIG_H
|
||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
#include <boost/context/detail/config.hpp>
|
||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
|
|
||||||
#ifdef BOOST_COROUTINES2_DECL
|
#ifdef BOOST_COROUTINES2_DECL
|
||||||
@ -43,7 +44,8 @@
|
|||||||
# define BOOST_COROUTINES2_SEGMENTS 10
|
# define BOOST_COROUTINES2_SEGMENTS 10
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BOOST_COROUTINES2_UNIDIRECT
|
#if defined(BOOST_CONTEXT_NO_EXECUTION_CONTEXT)
|
||||||
#define BOOST_COROUTINES2_SYMMETRIC
|
# error "execution_context from boost.context not supported"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // BOOST_COROUTINES2_DETAIL_CONFIG_H
|
#endif // BOOST_COROUTINES2_DETAIL_CONFIG_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user