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