mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-13 00:49:32 +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);
|
InternalFreemem(pointer(ptruint(p)+AllocSize), RestSize);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Result := nil;
|
begin
|
||||||
|
if ReturnNilIfGrowHeapFails then
|
||||||
|
Result := nil
|
||||||
|
else
|
||||||
|
RunError(203);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function GetAlignedMem(Size, Alignment: ptruint): pointer;
|
function GetAlignedMem(Size, Alignment: ptruint): pointer;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user