libcopp  1.1.0
stack_context.cpp
Go to the documentation of this file.
1 #include <cstring>
2 
4 
5 namespace copp {
6 
8  : size(0), sp(NULL)
9 #ifdef LIBCOPP_MACRO_USE_SEGMENTED_STACKS
10  ,
11  segments_ctx()
12 #endif
13 #ifdef LIBCOPP_MACRO_USE_VALGRIND
14  ,
15  valgrind_stack_id(0)
16 #endif
17  {
18  }
19 
20 
22 
24  size = 0;
25  sp = NULL;
26 #ifdef LIBCOPP_MACRO_USE_SEGMENTED_STACKS
27  memset(segments_ctx, 0, sizeof(segments_ctx));
28 #endif
29 #ifdef LIBCOPP_MACRO_USE_VALGRIND
30  valgrind_stack_id = 0;
31 #endif
32  }
33 } // namespace copp
stack_context()
stack end pointer
sample endif() if(PROJECT_ENABLE_UNITTEST) add_custom_target(run_test) add_subdirectory("$
Definition: CMakeLists.txt:77
void * sp
stack size
Definition: stack_context.h:14