stack returns the current function name as well as the function name of the calling functions.
Return Value
Without parameters stack returns the number of elements in the Stack nMax.
If called with one parameter n = 0 .. nMax-1, stack returns the function name an the specified position. stack(0) returns the current function name.
Parameters
n see return value.
Example
def TestStackFunc()
{
print stack(0); // Return: "TestStackFunc"
}
See also
id-129372