* generate a run time error 203 in the tiny heap in case there's not enough

memory for a memory allocation and ReturnNilIfGrowHeapFails is false

git-svn-id: trunk@25727 -
This commit is contained in:
nickysn 2013-10-09 19:27:55 +00:00
parent babbc21afd
commit 327a15488e

View File

@ -75,7 +75,10 @@
InternalTinyFreeMem(pointer(ptruint(p)+AllocSize), RestSize);
end
else
Result := nil;
if ReturnNilIfGrowHeapFails then
Result := nil
else
HandleError(203);
{$ifdef DEBUG_TINY_HEAP}
Writeln(ptruint(Result));
{$endif DEBUG_TINY_HEAP}