identify a calling function

0 views
Skip to first unread message

Bell, Kevin

unread,
Jun 27, 2008, 1:15:26 PM6/27/08
to utahp...@googlegroups.com

How do I determine the origin of a function call? 

 

If I have func1 that will call either func2 or func3, how can func2 or 3 determine if they were called by 1 or some other process?

 

Thanks!

 

Jonathan Ellis

unread,
Jun 27, 2008, 1:20:57 PM6/27/08
to utahp...@googlegroups.com
You can inspect the call stack but that is not super user-friendly
because there's usually a better way to do what you need.

What are you trying to do exactly?

-Jonathan

Reply all
Reply to author
Forward
0 new messages