[Lazarus] Line Ending FPC/Delphi

Sergei Gorelkin sergei_gorelkin at mail.ru
Thu Mar 5 19:22:24 CET 2009


Felipe Monteiro de Carvalho wrote:
> In my projects I usually have a file with only general constants,
> which is added by all others. In this file I add the following
> declaration:
> 
> {$IFNDEF FPC}
> const
>   LineEnding = #10#13;
> {#endif}

In Delphi this constant is called sLineBreak. For compatibility reasons, 
it exists in FPC as well. So using sLineBreak allows writing code 
without $ifdef's.

Regards,
Sergei



More information about the Lazarus mailing list