Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2017-12

Compiler for current function name

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ondrej Pokorny

Hello!

I remember there should be a compiler macro in current FPC trunk to get the function name but I cannot find it:

function TMyObject.DoSomething: Integer;
begin
   Writeln(_CLASSNAME_, '.', _FUNCTIONNAME_);
end;

Does anybody know the macros or do I remember it wrongly?

Thanks
Ondrej

Reply by email

Marco van de Voort
to Ondrej Pokorny

In our previous episode, Ondrej Pokorny said:

Show quoted text 10 lines
I remember there should be a compiler macro in current FPC trunk to get the function name but I cannot find it: function TMyObject.DoSomething: Integer; begin ? Writeln(_CLASSNAME_, '.', _FUNCTIONNAME_); end; Does anybody know the macros or do I remember it wrongly?
{$i %CURRENTROUTINE%}

Reply by email