mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 04:06:08 +02:00
* 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:
parent
babbc21afd
commit
327a15488e
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user