[fpc-pascal] Conditional code for FPC modes
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Jun 15 11:43:59 CEST 2016
On Wed, 15 Jun 2016 11:18:38 +0200
Sven Barth <pascaldragon at googlemail.com> wrote:
> Am 15.06.2016 10:15 schrieb "Juha Manninen" <juha.manninen62 at gmail.com>:
> >
> > Are there defines matching the modes in FPC, for example {$mode
> delphiunicode} ?
> > I want to do something like :
> > {$IFDEF delphiunicode}
> > ...
> > {$ELSE}
> > ...
> > {$ENDIF}
>
> There are. They are FPC_<modename>, though DelphiUnicode seems to be
> missing. You shouldn't directly check for that anyway, but instead for
> FPC_UNICODESTRINGS which is set if String = UnicodeString independently of
> the mode.
Thanks for the hint. Done.
Mattias
More information about the fpc-pascal
mailing list