Recent

Author Topic: Default file templates (units, projects, &c.)  (Read 3935 times)

CCRDude

  • Hero Member
  • *****
  • Posts: 600
Default file templates (units, projects, &c.)
« on: April 25, 2007, 02:32:17 pm »
Currently, a new Lazarus project use this directive:
Code: [Select]
{$mode objfpc}{$H+}
Which works nice with Lazarus, but won't work with Delphi.

Since I write all of my code to be compatible to both (Delphi for historical reasons on Win32, FPC/Lazarus on others), I always have to change this. For full compatibility there, my suggestion would be to use these directives in new file templates instead:
Code: [Select]
{$IFDEF FPC}
{$mode objfpc}{$H+}
{$ENDIF FPC}

antonio

  • Hero Member
  • *****
  • Posts: 605
RE: Default file templates (units, projects, &c.)
« Reply #1 on: April 26, 2007, 05:25:40 am »
Thanks for the hint...

 

TinyPortal © 2005-2018