libcopp
2.2.0
include
libcopp
fcontext
detail
fcontext_i386.hpp
Go to the documentation of this file.
1
// Copyright 2023 owent
2
3
#pragma once
4
5
#include <libcopp/utils/config/libcopp_build_features.h>
6
7
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
8
# pragma once
9
#endif
10
11
// clang-format off
12
#include <
libcopp/utils/config/stl_include_prefix.h
>
// NOLINT(build/include_order)
13
// clang-format on
14
#include <stdint.h>
15
#include <cstddef>
16
// clang-format off
17
#include <
libcopp/utils/config/stl_include_suffix.h
>
// NOLINT(build/include_order)
18
// clang-format on
19
20
#include "
libcopp/fcontext/detail/config.hpp
"
21
#include "
libcopp/utils/features.h
"
22
23
#ifdef COPP_HAS_ABI_HEADERS
24
# include COPP_ABI_PREFIX
25
#endif
26
LIBCOPP_COPP_NAMESPACE_BEGIN
27
namespace
fcontext
{
28
29
extern
"C"
{
30
31
#define COPP_BOOST_CONTEXT_CALLDECL __attribute__((cdecl))
32
33
struct
stack_t {
34
void
*
sp
;
35
std::size_t
size
;
36
37
stack_t
() :
sp
(0),
size
(0) {}
38
};
39
40
struct
fcontext_t
{
41
uint32_t
fc_greg
[6];
42
stack_t
fc_stack
;
43
uint32_t
fc_freg
[2];
44
45
fcontext_t
() :
fc_greg
(),
fc_stack
(),
fc_freg
() {}
46
};
47
}
48
}
// namespace fcontext
49
LIBCOPP_COPP_NAMESPACE_END
50
51
#ifdef COPP_HAS_ABI_HEADERS
52
# include COPP_ABI_SUFFIX
53
#endif
config.hpp
features.h
fcontext
Definition:
fcontext_arm.hpp:23
fcontext::fcontext_t
void * fcontext_t
Definition:
fcontext.hpp:27
stl_include_prefix.h
stl_include_suffix.h
fcontext::fcontext_t::fc_stack
stack_t fc_stack
Definition:
fcontext_arm.hpp:44
fcontext::fcontext_t::fcontext_t
fcontext_t()
Definition:
fcontext_i386.hpp:45
fcontext::fcontext_t::fc_greg
uint32_t fc_greg[11]
Definition:
fcontext_arm.hpp:43
fcontext::fcontext_t::fc_freg
uint32_t fc_freg[2]
Definition:
fcontext_i386.hpp:43
fcontext::stack_t::size
std::size_t size
Definition:
fcontext_arm.hpp:31
fcontext::stack_t::sp
void * sp
Definition:
fcontext_arm.hpp:30
fcontext::stack_t::stack_t
stack_t()
Definition:
fcontext_i386.hpp:37
Generated by
1.9.1