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

Method Malloc

source/var.cpp:1294–1303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292
1293
1294LPTSTR ResultToken::Malloc(LPTSTR aValue, size_t aLength)
1295{
1296 if (aLength == -1)
1297 aLength = _tcslen(aValue);
1298 if ( !(mem_to_free = tmalloc(aLength + 1)) )
1299 return NULL;
1300 symbol = SYM_STRING;
1301 marker_length = aLength;
1302 return tmemcpy(marker = mem_to_free, aValue, aLength + 1); // +1 to include the null-terminator.
1303}
1304
1305
1306

Callers 2

ExecUntilMethod · 0.45
VariantToTokenFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected