GetFunctionCalledName
Get the name of the function that is being called.
If no function is being called, an empty string is returned.
Method Signature
GetFunctionCalledName()Arguments
This function does not accept any arguments
Examples
getFunctionCalledName Basic Example
Show results of calling a function directly versus by reference
void function actualFunctionName() {
writeOutput( "actualFunctionName() was called as: #getFunctionCalledName()#<br>" );
}
writeOutput( "<hr><h4>Calling actualFunctionName()</h4>" );
actualFunctionName();
writeOutput( "<hr><h4>Calling actualFunctionName() via reference</h4>" );
referenceToFunction = actualFunctionName;
referenceToFunction();
Getters and Setters Example
Example of using getFunctionCalledName to create dynamic getters and setters
Additional Examples
Related
Last updated
Was this helpful?
