mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 09:09:47 +01:00
* embedded heap manager takes care of ReturnNilIfGrowHeapFails
git-svn-id: trunk@33070 -
This commit is contained in:
parent
9b84581f4c
commit
dfd261f2d6
@ -82,7 +82,12 @@ Unit heapmgr;
|
||||
InternalFreemem(pointer(ptruint(p)+AllocSize), RestSize);
|
||||
end
|
||||
else
|
||||
Result := nil;
|
||||
begin
|
||||
if ReturnNilIfGrowHeapFails then
|
||||
Result := nil
|
||||
else
|
||||
RunError(203);
|
||||
end;
|
||||
end;
|
||||
|
||||
function GetAlignedMem(Size, Alignment: ptruint): pointer;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user