How to? Get name of current LIBRARY function?

Code:
_BATCHNAME returns the full path and file name of the current batch file. It is an empty string if no batch file is active.

When executing a library function, how can I get the name of the currently executing library function? (Not the name of the LIBRARY in which it is contained.)

For example, if I have a library function SETU, how do I get that name, while the library function is executing?

Joe
Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  27.00.18 x64   Windows 10 [Version 10.0.19042.746]
 
I have a template that I use in my .btm files, that includes (example);
Code:
ECHO  Usage:  %_batchname MainFile  ExtraFile1 ExtraFile2 ExtraFile3
...so that I don't have to hard-code the name of the .BTM

I would like to be able to do the same with LIBRARY functions.

Joe
 
May 20, 2008
11,041
90
Syracuse, NY, USA
how can I get the name of the currently executing library function?
If the library function is currently executing, who's going to be doing the getting of its name ... the library function itself?

A library function can refer to %0, which seems to be its own name.