MCPcopy Create free account
hub / github.com/cpputest/cpputest / save

Method save

src/CppUTest/TestMemoryAllocator.cpp:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void GlobalMemoryAllocatorStash::save()
119{
120 originalMallocAllocator = getCurrentMallocAllocator();
121 originalNewAllocator = getCurrentNewAllocator();
122 originalNewArrayAllocator = getCurrentNewArrayAllocator();
123}
124
125void GlobalMemoryAllocatorStash::restore()
126{

Callers

nothing calls this directly

Calls 3

getCurrentNewAllocatorFunction · 0.85

Tested by

no test coverage detected