caller_file
caller_file ([level])
This function returns the file name containing the statement that called this routine. If the argument level is given, it specifies the number of call frames to go back before the current function to obtain the file name of the calling function. For example, caller_file(1) returns the file name of the call to the active function, whose name is returned by caller(0).
Related Topics