Am Wed, 11 May 2011 13:12:22 +0200
schrieb Hans-Peter Diettrich <drdiettri...@aol.com>:

> FPC macros don't have parameters, for 
> this and other reasons. That's not a hard restriction, because inline 
> procedures can be used instead, in many cases.

Hmmm, I think about macros for pascal with parameters for some time, and
ask you now: where is the debugging macro used inside the whole
compiler sources? Nowhere, because it is nearly impossible to write
some really useful.
The parameters are not the problem. If you
introduce a macro expansion like:

{$I %macro_name(macro_parametertext)}

the preprocessor knows it is a macro expansion and there is no need to
check every identifier.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to