callingFunctionName=caller()| Outputs | |
callingFunctionName |
A string, which is the name of the function that called the function that is being currently executed. |
>>function func()
> printf("%s\n",caller());
> end
>>function g()
> func()
> end
>>func()
$MAIN
>> g()
g