Am 20.08.2013 13:52 schrieb "Hans-Peter Diettrich" <[email protected]>:
>
> Mark Morgan Lloyd schrieb:
>
>
>> Apropos Paul's comments of doing a good cross-reference and handling
compiler directives, I think the thing that is likely to give real problems
is the {$if defined() } form...
>
>
> I'm not sure whether $if defined() works with ordinary constants. The
$DEFINE and CONST identifiers most probably reside in different lists.

"defined(identifier)" is only for identifiers which were added using
"$define", "-d..." or by the compiler itself. If you want to check for the
existence of a Pascal identifier use "declared(identifier)".

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to