[fpc-pascal] advanced macros?

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jul 7 14:13:59 CEST 2009


On 07 Jul 2009, at 13:57, Roland Schaefer wrote:

> reading the Programmer's Manual, I get the impression that C-style
> macros with {$MACRO ON} cannot do things like C
>
> #define MY_MACRO(param1,param2...)
>    code_with ( param1 && param 2 );
>
> i.e., passing strings macros for in-macro insertion. Is this true?

Yes.

> If
> yes, are there any plans to include such capabilities in the
> preprocessor?

No.

> One related question: In current FPC macros, can I include {$IFDEF}s?

I doubt it, as I don't think that the preprocessing happens recursively.


Jonas




More information about the fpc-pascal mailing list