[fpc-pascal] Include directive for current procedure/method/function name?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Fri Feb 26 01:15:31 CET 2016


Hi,

I vaguely remember somebody requesting something like this, but not sure
if it was every implemented in FPC 2.6.4 or FPC 3.0.  A macro that one
can use in code to return a string, which is the name of the current
procedure, function or method. Useful in debugging.

Something like the   {$I %date%}    syntax.


Anybody know if there is something like that in FPC?

Regards,
  - Graeme -




More information about the fpc-pascal mailing list