David Emerson wrote on Thu, 24 Sep 2015:
Is there a way to detect what section of a unit the compiler is in, rather than using these user-defined symbols?
No.
Ditto for initialization, finalization (although I use this much less frequently)
No, there aren't any defines for that either. Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal