libcopp 2.3.1
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fcontext.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(__PGI)
8# include <stdint.h>
9#endif
10
11#if defined(_WIN32_WCE)
12using intptr_t = int;
13#endif
14
15#include <stdint.h>
16#include <cstddef>
17
20
21#ifdef LIBCOPP_HAS_ABI_HEADERS
22# include LIBCOPP_ABI_PREFIX
23#endif
24
25LIBCOPP_COPP_NAMESPACE_BEGIN
26namespace fcontext {
27using fcontext_t = void*;
28
29struct transfer_t {
31 void* data;
32};
33
36
38copp_make_fcontext_v2(void* sp, std::size_t size, void (*fn)(transfer_t));
39
42} // namespace fcontext
43LIBCOPP_COPP_NAMESPACE_END
44
45#ifdef LIBCOPP_HAS_ABI_HEADERS
46# include LIBCOPP_ABI_SUFFIX
47#endif
#define LIBCOPP_BOOST_CONTEXT_CALLDECL
Definition config.hpp:33
#define LIBCOPP_BOOST_CONTEXT_DECL
Definition config.hpp:24
LIBCOPP_BOOST_CONTEXT_DECL fcontext_t LIBCOPP_BOOST_CONTEXT_CALLDECL copp_make_fcontext_v2(void *sp, std::size_t size, void(*fn)(transfer_t))
LIBCOPP_BOOST_CONTEXT_DECL transfer_t LIBCOPP_BOOST_CONTEXT_CALLDECL copp_jump_fcontext_v2(fcontext_t const to, void *vp)
LIBCOPP_BOOST_CONTEXT_DECL transfer_t LIBCOPP_BOOST_CONTEXT_CALLDECL copp_ontop_fcontext_v2(fcontext_t const to, void *vp, transfer_t(*fn)(transfer_t))