[fpc-pascal] $IF documentation - missing help

Aleksa Todorovic alexione at gmail.com
Tue Sep 15 14:41:27 CEST 2009


Maybe

{$IF Defined(VER2_3) or Defined(VER2_4))
 ...
{$ENDIF}

?


On Tue, Sep 15, 2009 at 13:26, Graeme Geldenhuys
<graemeg at opensoft.homeip.net> wrote:
> Hi,
>
> Where is the extended $IF directive documented. The prog.pdf has 2
> paragraphs on $if and then referes you to the "conditionals" section.
> But the Conditionals section is incomplete.
>
> I look through all these docs...
> prog.pdf  ref.pdf  user.pdf
>
> What I am looking for is something I used years ago, but can't find an
> example of it now. I can't remember the exact syntax, but is was
> something like this:
>
> {$IFDEF FPC $IF Defined(VER2_3) or ....)
>  ...
> {$ENDIF}
>
> Due to the mishaps with UnicodeString in FPC 2.3.1, I need to IFDEF some
> tiOPF code so that certain code will only work with FPC 2.2.5 and
> earlier, and other code will only work with FPC 2.3.1 and greater. How
> do I write this?
>
>
> Regards,
>  - Graeme -
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://opensoft.homeip.net/fpgui/
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



-- 
Aleksa Todorovic - Lead Programmer
Eipix Entertainment
http://www.eipix.com/



More information about the fpc-pascal mailing list