[Pas2js] Optimization

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Feb 26 09:23:59 CET 2020


On Wed, 26 Feb 2020 07:43:45 +0100
pas2js at gauns.org wrote:

> Hi guys,
> 
> is it possible to switch off Optimization with a compiler directive
> 
> fa:
> 
> {$O-}
> procedure TForm1.Button1Click(Sender: TObject);
> begin
> 	WriteLn( 'Click' )
> end;
> {$O+}
> 
> 
> i just want that the optimization process do not remove this function,
> but i don't want to switch off the whole optimization

Add somewhere safe:
  if false then Button1Click(nil);

Mattias


More information about the Pas2js mailing list