[fpc-pascal] Free Pascal bindings for EyeLink C code (with a god-cast)

Marco van de Voort fpc at pascalprogramming.org
Tue Jun 13 15:48:36 CEST 2023


On 13-6-2023 15:38, Rafael Picanço via fpc-pascal wrote:
> Thank you Marco, I am elaborating on top of your suggestions.
>
> > The problem is that the logical solution, making it a macro, doesn't
> work, as macro definitions don't export through USES clauses.
>
> I think that pre-processor constants with $I would be a valid 
> alternative for using the best solution. For example:
>
A matter of taste. I would have as less macros as possible. Moreover the 
typed const doesn't require including additional files at the usage 
site, so IMHO it is objectively a better solution


More information about the fpc-pascal mailing list