mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-05 19:46:15 +02:00
* enable the compiler to optimize away parts of System.PushExceptObject, if System.get_frame is not implemented, i.e. returning nil
git-svn-id: trunk@47058 -
This commit is contained in:
parent
ab9fa2012b
commit
c9fcc68ec1
@ -101,12 +101,14 @@ begin
|
||||
writeln ('In PushExceptObject');
|
||||
{$endif}
|
||||
_ExceptObjectStack:=@ExceptObjectStack;
|
||||
New(NewObj);
|
||||
NewObj:=AllocMem(sizeof(TExceptObject));
|
||||
NewObj^.Next:=_ExceptObjectStack^;
|
||||
_ExceptObjectStack^:=NewObj;
|
||||
|
||||
NewObj^.FObject:=Obj;
|
||||
NewObj^.Addr:=AnAddr;
|
||||
if assigned(get_frame) then
|
||||
begin
|
||||
NewObj^.refcount:=0;
|
||||
|
||||
{ Backtrace }
|
||||
@ -135,6 +137,7 @@ begin
|
||||
End;
|
||||
NewObj^.framecount:=framecount;
|
||||
NewObj^.frames:=frames;
|
||||
end;
|
||||
Result:=NewObj;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user