Returns the name of the current SPL routine.
__FUNC__
// ltest.spl
ltest(x)
{
local line, str;
if (argc < 1) x = 1;
line = __LINE__;
if (x == 0)
{
str = sprintf(strescape(
message(str);
return;
}
return(1/x);
}
ltest(0)
displays the message:
Divide by 0 Near Line: 9
File: ltest.spl
Function: ltest
__FUNC__ returns the current SPL routine as a string.
See __CALLER__ to return the name of the caller SPL routine.