MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / operator new

Function operator new

rEFIt_UEFI/cpp_util/operatorNewDelete.cpp:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10void* operator new (size_t count)
11#else
12void* operator new (unsigned long count)
13#endif
14{
15 void* ptr = AllocatePool(count);
16 if ( !ptr ) {
17 DebugLog(2, "AllocatePool(%lu) returned NULL. Cpu halted\n", count);
18 CpuDeadLoop();
19 }
20 return ptr;
21}
22
23#if defined(_MSC_VER)
24void* operator new[] (size_t count)

Callers

nothing calls this directly

Calls 3

AllocatePoolFunction · 0.50
DebugLogFunction · 0.50
CpuDeadLoopFunction · 0.50

Tested by

no test coverage detected