[Lazarus] New preprocessor directive

Martin Frb lazarus at mfriebe.de
Sun May 17 15:23:47 CEST 2015


On 17/05/2015 13:22, Vojtěch Čihák wrote:
>
> Add I created code template for it: "icr" and it writes{$I 
> %CURRENTROUTINE%} itself :-)
>
>

Simply use $ProcedureName() in your template

   EnterSomething('$ProcedureName()');

Of course it does not update if you rename the procedure, but otherwise 
it is fine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150517/ce6d6533/attachment-0003.html>


More information about the Lazarus mailing list