mirror of
https://github.com/boostorg/context.git
synced 2026-01-19 04:02:17 +00:00
refactor all.hpp
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
int main() {
|
||||
int n=35;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
boost::context::execution_context * ctx1 = nullptr;
|
||||
boost::context::execution_context * ctx2 = nullptr;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
boost::context::execution_context * ctx1 = nullptr;
|
||||
boost::context::execution_context * ctx = nullptr;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
class X{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
/*
|
||||
* grammar:
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
#ifdef BOOST_MSVC //MS VisualStudio
|
||||
__declspec(noinline) void access( char *buf);
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include <libunwind.h>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
namespace ctx = boost::context;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <iostream>
|
||||
#include <emmintrin.h>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
void echoSSE( int i) {
|
||||
__m128i xmm;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
namespace ctx = boost::context;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
namespace ctx = boost::context;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
namespace ctx = boost::context;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <iostream>
|
||||
#include <tuple>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
namespace ctx = boost::context;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <iostream>
|
||||
#include <tuple>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
namespace ctx = boost::context;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <string>
|
||||
|
||||
#include <boost/variant.hpp>
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
typedef boost::variant<int,std::string> variant_t;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
namespace ctx = boost::context;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
|
||||
struct my_exception : public std::runtime_error {
|
||||
my_exception( std::string const& what) :
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
// Copyright Oliver Kowalke 2014.
|
||||
// Copyright Oliver Kowalke 2016.
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <boost/context/execution_context.hpp>
|
||||
#include <boost/context/continuation.hpp>
|
||||
#include <boost/context/fixedsize_stack.hpp>
|
||||
#include <boost/context/pooled_fixedsize_stack.hpp>
|
||||
#include <boost/context/protected_fixedsize_stack.hpp>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
#include <boost/cstdint.hpp>
|
||||
#include <boost/program_options.hpp>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
#include <boost/cstdint.hpp>
|
||||
#include <boost/program_options.hpp>
|
||||
|
||||
|
||||
@@ -22,8 +22,11 @@
|
||||
#include <boost/context/continuation.hpp>
|
||||
#include <boost/context/detail/config.hpp>
|
||||
|
||||
#if defined(BOOST_MSVC)
|
||||
#ifdef BOOST_WINDOWS
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_MSVC)
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable: 4723)
|
||||
#endif
|
||||
|
||||
@@ -16,9 +16,13 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/utility.hpp>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
#include <boost/context/detail/config.hpp>
|
||||
|
||||
#ifdef BOOST_WINDOWS
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
namespace ctx = boost::context;
|
||||
|
||||
int value1 = 0;
|
||||
|
||||
@@ -19,9 +19,13 @@
|
||||
#include <boost/utility.hpp>
|
||||
#include <boost/variant.hpp>
|
||||
|
||||
#include <boost/context/all.hpp>
|
||||
#include <boost/context/execution_context.hpp>
|
||||
#include <boost/context/detail/config.hpp>
|
||||
|
||||
#ifdef BOOST_WINDOWS
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#if defined(BOOST_MSVC)
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable: 4723)
|
||||
|
||||
Reference in New Issue
Block a user