libcopp  1.1.0
stack_context.h
Go to the documentation of this file.
1 #ifndef COPP_STACKCONTEXT_STACKCONTEXT_H
2 #define COPP_STACKCONTEXT_STACKCONTEXT_H
3 
4 
5 #pragma once
6 
7 #include <cstddef>
8 
10 
11 namespace copp {
12  struct stack_context {
13  size_t size;
14  void * sp;
16 #ifdef LIBCOPP_MACRO_USE_SEGMENTED_STACKS
17  typedef void * segments_context_t[COPP_MACRO_SEGMENTED_STACK_NUMBER];
18  segments_context_t segments_ctx;
19 #endif
20 
21 #ifdef LIBCOPP_MACRO_USE_VALGRIND
22  unsigned valgrind_stack_id;
23 #endif
24 
25  stack_context();
27 
28  void reset();
29  };
30 } // namespace copp
31 
32 #endif
stack_context()
stack end pointer
void * sp
stack size
Definition: stack_context.h:14