[fpc-devel] Compiler for current function name

Ondrej Pokorny lazarus at kluug.net
Mon Dec 18 10:44:10 CET 2017


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




More information about the fpc-devel mailing list