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

Function UT_THROW

src/CppUTest/MemoryLeakWarningPlugin.cpp:139–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137#endif
138
139static void* threadsafe_mem_leak_operator_new (size_t size) UT_THROW(std::bad_alloc)
140{
141 MemLeakScopedMutex lock;
142 void* memory = MemoryLeakWarningPlugin::getGlobalDetector()->allocMemory(getCurrentNewAllocator(), size);
143 UT_THROW_BAD_ALLOC_WHEN_NULL(memory);
144 return memory;
145}
146
147static void* threadsafe_mem_leak_operator_new_nothrow (size_t size) UT_NOTHROW
148{

Calls 4

getCurrentNewAllocatorFunction · 0.85
PlatformSpecificMallocFunction · 0.85
allocMemoryMethod · 0.80

Tested by

no test coverage detected