[fpc-pascal] TParamFlags and fpc 3.2.0.

Sven Barth pascaldragon at googlemail.com
Fri Aug 2 14:07:58 CEST 2019


fredvs <fiens at hotmail.com> schrieb am Fr., 2. Aug. 2019, 13:27:

> > No, It's > 030300, but your version of trunk is too old, the function
> > was only added a few days ago.
>
> Ha, ok. (but a few tricky, a new number for a new feature would be ok too).
>

By definition only the latest version of trunk is considered supported.
Also that's the version number of the compiler. That won't be increased for
every little thing that gets added.

That said instead of checking for the version you can also check for the
existence of the function:

{$if declared(AlignTParamFlags)}

This works with any identifier that is in scope (e.g. in this case the
TypInfo unit must be used, but that is the case here anyway).

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190802/ae57cbd8/attachment.html>


More information about the fpc-pascal mailing list