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

Method Alloc

source/SimpleHeap.cpp:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54LPTSTR SimpleHeap::Alloc(LPCTSTR aBuf, size_t aLength)
55{
56 auto new_buf = strDup(aBuf, aLength);
57 if (!new_buf)
58 CriticalFail(); // This terminates the program.
59 return new_buf; // Always non-null.
60}
61
62void* SimpleHeap::Malloc(size_t aSize)
63// This could be made more memory efficient by searching old blocks for sufficient

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected