Possible Duplicate:
Gettin line number of the called function
I'm debugging, and it's extremely useful for me to find a function that returns the position of this function in the code. More precisely, is there a function that can return the line number of the function in the code? For example, if I call f() in line x, the returned value is an integer x.
Thanks, Michael