On Fri, Jun 02, 2006 at 05:47:17PM -0400, Alexandre Leclerc wrote:
> Good news! If I knew that all those years. I know a lot of code that
> will be optimized now :)

Note that Delphi 2005+ also does this. So if you keep source Delphi + FPC
compat, the best you need to do something like

{$ifdef D2005plus} // or whatever your naming system is. Or use newer $if 
support
  {$define has_inline}
{$endif}

{$ifdef FPC}
  {$define has_inline}
{$endif}

in some global includefile and then


procedure xx (yy:integer); {$ifdef has_inline} inline; {$endif}

In FPC only code you can shorten this with a macro, but delphi doesn't
support those.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to