[fpc-devel] Macro Processing

Michael Van Canneyt michael at freepascal.org
Fri May 13 14:00:13 CEST 2011



On Fri, 13 May 2011, Jonas Maebe wrote:

>
> On 13 May 2011, at 13:43, Michael Van Canneyt wrote:
>
>> If I had my way, I would remove the existing ones alltogether.
>> The one use case they have in FPC sources could easily be remedied.
>
> They were introduced for Mac Pascal compiler compatibility, and are used 
> quite regularly in that context via command line definitions such as 
> -dSomeMacro:=123
>
> The Mac OS X universal interfaces would also need quite some rewriting to 
> remove all macro usage. While most could probably be changed into either 
> conditional defines or constants, I'm not certain whether that would work for 
> all of them.

I'm sorry, I was not aware they were used for the Mac Pascal dialect.
(not having a Mac is my only excuse for not looking into that ;) )

In each case, my case remains: I don't consider them good practise, 
and certainly wouldn't want to encourage their use by 'improving' them.

Michael.



More information about the fpc-devel mailing list