add preprocessor error if execution_context is not supported

This commit is contained in:
Oliver Kowalke 2015-06-04 08:30:35 +02:00
parent bdc7cb82e5
commit ca6d6c2ec1

View File

@ -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