[fpc-pascal] Determining procedure's name

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Mar 3 22:13:01 CET 2010


On 03 Mar 2010, at 20:33, Wimpie Nortje wrote:

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

There is a function, but only for methods:

      class function TObject.MethodName(address : pointer) : shortstring;

Simply pass the address of a method as argument. There is no macro.


Jonas



More information about the fpc-pascal mailing list