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

Class GlobalMemoryAllocatorStash

include/CppUTest/TestMemoryAllocator.h:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47extern TestMemoryAllocator* defaultMallocAllocator();
48
49class GlobalMemoryAllocatorStash
50{
51public:
52 GlobalMemoryAllocatorStash();
53 void save();
54 void restore();
55
56private:
57 TestMemoryAllocator* originalMallocAllocator;
58 TestMemoryAllocator* originalNewAllocator;
59 TestMemoryAllocator* originalNewArrayAllocator;
60};
61
62class TestMemoryAllocator
63{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected