[fpc-devel] Compiler for current function name
Marco van de Voort
marcov at stack.nl
Mon Dec 18 10:54:00 CET 2017
In our previous episode, Ondrej Pokorny said:
>
> 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%}
More information about the fpc-devel
mailing list