mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 18:39:20 +02:00
EditorMacroScript: Workaround for Mac, prevent using edx in result for TPoint
git-svn-id: trunk@39406 -
This commit is contained in:
parent
5c8670cd8a
commit
25da242bb8
@ -78,7 +78,7 @@ procedure CompRegisterBasics(AComp: TPSPascalCompiler);
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
AComp.AddTypeS('TPoint', 'record x,y' {$IFDEF darwin} +',a,b,c'{$ENDIF} + ': Longint; end;');
|
AComp.AddTypeS('TPoint', 'record x,y: Longint; end;');
|
||||||
AComp.AddDelphiFunction(DeclPoint);
|
AComp.AddDelphiFunction(DeclPoint);
|
||||||
|
|
||||||
AddConst('mrNone', 'Integer', mrNone);
|
AddConst('mrNone', 'Integer', mrNone);
|
||||||
|
@ -65,12 +65,10 @@ begin
|
|||||||
FTestSyn := TSynEdit.Create(nil);
|
FTestSyn := TSynEdit.Create(nil);
|
||||||
FTestMacro := TEMSEditorMacro.Create(nil);
|
FTestMacro := TEMSEditorMacro.Create(nil);
|
||||||
try
|
try
|
||||||
{$IFnDEF darwin}
|
|
||||||
DoTestSimple('SizeOf(TPoint)', '',
|
DoTestSimple('SizeOf(TPoint)', '',
|
||||||
'var p: TPoint; begin if SizeOf(p) = ' +IntToStr(SizeOf(TPoint)) + ' then Caller.InsertTextAtCaret(''Y'', scamEnd); end.',
|
'var p: TPoint; begin if SizeOf(p) = ' +IntToStr(SizeOf(TPoint)) + ' then Caller.InsertTextAtCaret(''Y'', scamEnd); end.',
|
||||||
'Y'
|
'Y'
|
||||||
);
|
);
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
DoTestSimple('mrNone', '',
|
DoTestSimple('mrNone', '',
|
||||||
'if mrNone = ' +IntToStr(mrNone) + ' then Caller.InsertTextAtCaret(''Y'', scamEnd);',
|
'if mrNone = ' +IntToStr(mrNone) + ' then Caller.InsertTextAtCaret(''Y'', scamEnd);',
|
||||||
|
Loading…
Reference in New Issue
Block a user