This is a function that will identify the caller of the program module that contains this funciton.
Utilities
This function returns a string in uppercase letters identifying the caller of the program module from which this program was called.
Used to determine which module called this module containing cgWhoCalledMe::
IDL> Print, cgWhoCalledMe()
; Compile and run the following main level program.
;***************************
PRO junker
Print, cgWhoCalledMe()
END
PRO junk
Print, cgWhoCalledMe()
END
junk
END
;**************************
IDL> .go
$MAIN$
JUNK
FANNING SOFTWARE CONSULTING:: David W. Fanning 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: david@idlcoyote.com Coyote's Guide to IDL Programming: http://www.idlcoyote.com
Change History:: Written, 16 January 2011. DWF. Fix call-stack-position detection, 30 December 2015. JWS.
Copyright (c) 2011, Fanning Software Consulting, Inc.