[fpc-devel] Declare variables inside the code
joerg.schuelke at gmx.de
Wed May 11 14:35:54 CEST 2011
Am Wed, 11 May 2011 13:12:22 +0200
schrieb Hans-Peter Diettrich <DrDiettrich1 at 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:
the preprocessor knows it is a macro expansion and there is no need to
check every identifier.
More information about the fpc-devel