[fpc-pascal] Determining procedure's name

Wimpie Nortje wimpienortje at gmail.com
Wed Mar 3 20:33:45 CET 2010


Hello everybody,

Is there a macro or function that gives the current procedure's name?

E.g.

procedure TClass.SomeProc;
begin
  writeln(Format('This procedure's name is %s', [THE_MACRO]));
end;

should print

This procedure's name is TClass.SomeProc

or

This procedure's name is SomeProc



More information about the fpc-pascal mailing list