MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / Malloc

Method Malloc

source/SimpleHeap.cpp:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46LPTSTR SimpleHeap::Malloc(LPCTSTR aBuf, size_t aLength)
47{
48 auto new_buf = strDup(aBuf, aLength);
49 if (!new_buf)
50 MemoryError();
51 return new_buf; // May be null.
52}
53
54LPTSTR SimpleHeap::Alloc(LPCTSTR aBuf, size_t aLength)
55{

Callers

nothing calls this directly

Calls 1

MemoryErrorFunction · 0.85

Tested by

no test coverage detected