PascalScript: reverted some derivations from the git version

git-svn-id: trunk@56160 -
This commit is contained in:
martin 2017-10-23 03:10:38 +00:00
parent c1a20347a3
commit c3ae0f3967
2 changed files with 2 additions and 2 deletions

View File

@ -594,7 +594,7 @@ begin
{$IFNDEF PS_NOWIDESTRING}btWideChar, {$ENDIF}btu16, bts16: tbtu16(res.dta^) := RealCall_Register(Address, EAX, EDX, ECX, @Stack[Length(Stack)-3], Length(Stack) div 4, 2, nil);
btClass :
begin
{$IF DEFINED (fpc) and (fpc_version <= 3)}
{$IF DEFINED (fpc) and (fpc_version < 3)}
if IsConstructor or IsVirtualCons then
tbtu32(res.dta^) := RealCall_Register(Address, EDX, EAX, ECX,
@Stack[Length(Stack) - 3], Length(Stack) div 4, 4, nil)

View File

@ -266,7 +266,7 @@ end;
procedure TCompilerTestSimple.CreateObject;
begin
CompileRun('var r: TObject; begin r := TObject.Create; r.Destroy; end.');
CompileRun('var r: TObject; begin r := TObject.Create; r.Free; end.');
end;
procedure TCompilerTestSimple.CharTest2;