Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:35:09

0001 
0002 //          Copyright Oliver Kowalke 2014.
0003 // Distributed under the Boost Software License, Version 1.0.
0004 //    (See accompanying file LICENSE_1_0.txt or copy at
0005 //          http://www.boost.org/LICENSE_1_0.txt)
0006 
0007 #ifndef BOOST_CONTEXT_PREALLOCATED_H
0008 #define BOOST_CONTEXT_PREALLOCATED_H
0009 
0010 #include <cstddef>
0011 
0012 #include <boost/config.hpp>
0013 
0014 #include <boost/context/detail/config.hpp>
0015 
0016 #ifdef BOOST_HAS_ABI_HEADERS
0017 # include BOOST_ABI_PREFIX
0018 #endif
0019 
0020 namespace boost {
0021 namespace context {
0022 
0023 struct preallocated {
0024     void        *   sp;
0025     std::size_t     size;
0026     stack_context   sctx;
0027 
0028     preallocated( void * sp_, std::size_t size_, stack_context sctx_) noexcept :
0029         sp( sp_), size( size_), sctx( sctx_) {
0030     }
0031 };
0032 
0033 }}
0034 
0035 #ifdef BOOST_HAS_ABI_HEADERS
0036 # include BOOST_ABI_SUFFIX
0037 #endif
0038 
0039 #endif // BOOST_CONTEXT_PREALLOCATED_H