mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 09:04:11 +01: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;
 | 
			
		||||
 | 
			
		||||
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);
 | 
			
		||||
 | 
			
		||||
  AddConst('mrNone', 'Integer', mrNone);
 | 
			
		||||
 | 
			
		||||
@ -65,12 +65,10 @@ begin
 | 
			
		||||
  FTestSyn := TSynEdit.Create(nil);
 | 
			
		||||
  FTestMacro := TEMSEditorMacro.Create(nil);
 | 
			
		||||
  try
 | 
			
		||||
{$IFnDEF darwin}
 | 
			
		||||
    DoTestSimple('SizeOf(TPoint)',   '',
 | 
			
		||||
                 'var p: TPoint; begin if SizeOf(p) = ' +IntToStr(SizeOf(TPoint)) + ' then Caller.InsertTextAtCaret(''Y'', scamEnd); end.',
 | 
			
		||||
                 'Y'
 | 
			
		||||
                 );
 | 
			
		||||
{$ENDIF}
 | 
			
		||||
 | 
			
		||||
    DoTestSimple('mrNone',   '',
 | 
			
		||||
                 'if mrNone = ' +IntToStr(mrNone) + ' then Caller.InsertTextAtCaret(''Y'', scamEnd);',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user