annotate DEPENDENCIES/generic/include/boost/context/stack_context.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1
Chris@102 2 // Copyright Oliver Kowalke 2014.
Chris@102 3 // Distributed under the Boost Software License, Version 1.0.
Chris@102 4 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@102 5 // http://www.boost.org/LICENSE_1_0.txt)
Chris@102 6
Chris@102 7 #ifndef BOOST_CONTEXT_STACK_CONTEXT_H
Chris@102 8 #define BOOST_CONTEXT_STACK_CONTEXT_H
Chris@102 9
Chris@102 10 #include <cstddef>
Chris@102 11
Chris@102 12 #include <boost/config.hpp>
Chris@102 13
Chris@102 14 #include <boost/context/detail/config.hpp>
Chris@102 15
Chris@102 16 #ifdef BOOST_HAS_ABI_HEADERS
Chris@102 17 # include BOOST_ABI_PREFIX
Chris@102 18 #endif
Chris@102 19
Chris@102 20 namespace boost {
Chris@102 21 namespace context {
Chris@102 22
Chris@102 23 #if defined(BOOST_USE_SEGMENTED_STACKS)
Chris@102 24 struct stack_context {
Chris@102 25 typedef void * segments_context[BOOST_CONTEXT_SEGMENTS];
Chris@102 26
Chris@102 27 std::size_t size;
Chris@102 28 void * sp;
Chris@102 29 segments_context segments_ctx;
Chris@102 30 #if defined(BOOST_USE_VALGRIND)
Chris@102 31 unsigned valgrind_stack_id;
Chris@102 32 #endif
Chris@102 33
Chris@102 34 stack_context() :
Chris@102 35 size( 0),
Chris@102 36 sp( 0),
Chris@102 37 segments_ctx()
Chris@102 38 #if defined(BOOST_USE_VALGRIND)
Chris@102 39 , valgrind_stack_id( 0)
Chris@102 40 #endif
Chris@102 41 {}
Chris@102 42 };
Chris@102 43 #else
Chris@102 44 struct stack_context {
Chris@102 45 std::size_t size;
Chris@102 46 void * sp;
Chris@102 47 #if defined(BOOST_USE_VALGRIND)
Chris@102 48 unsigned valgrind_stack_id;
Chris@102 49 #endif
Chris@102 50
Chris@102 51 stack_context() :
Chris@102 52 size( 0),
Chris@102 53 sp( 0)
Chris@102 54 #if defined(BOOST_USE_VALGRIND)
Chris@102 55 , valgrind_stack_id( 0)
Chris@102 56 #endif
Chris@102 57 {}
Chris@102 58 };
Chris@102 59 #endif
Chris@102 60
Chris@102 61 }}
Chris@102 62
Chris@102 63 #ifdef BOOST_HAS_ABI_HEADERS
Chris@102 64 # include BOOST_ABI_SUFFIX
Chris@102 65 #endif
Chris@102 66
Chris@102 67 #endif // BOOST_CONTEXT_STACK_CONTEXT_H