Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cpputest/cpputest
/ getCurrentNewAllocator
Function
getCurrentNewAllocator
src/CppUTest/TestMemoryAllocator.cpp:50–54 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
48
}
49
50
TestMemoryAllocator* getCurrentNewAllocator()
51
{
52
if (currentNewAllocator == NULLPTR) setCurrentNewAllocatorToDefault();
53
return currentNewAllocator;
54
}
55
56
void setCurrentNewAllocatorToDefault()
57
{
Callers
15
setGlobalMemoryReportAllocators
Method · 0.85
removeGlobalMemoryReportAllocators
Method · 0.85
UT_THROW
Function · 0.85
threadsafe_mem_leak_operator_new_nothrow
Function · 0.85
threadsafe_mem_leak_operator_delete
Function · 0.85
mem_leak_operator_new_nothrow
Function · 0.85
mem_leak_operator_delete
Function · 0.85
save
Method · 0.85
start
Method · 0.85
restoreMemoryAllocators
Method · 0.85
stop
Method · 0.85
TemporaryDefaultNewAllocator
Method · 0.85
Calls
1
setCurrentNewAllocatorToDefault
Function · 0.85
Tested by
no test coverage detected