I wanna know if there is any way to know where the function currently in execution was called, this is, in what file and line.
I\'m using C language, and I\'m looking for so
If you need to know it at runtime, I don't think it's possible.
If you need to know it at debugtime, you can place a breakpoint on the function you want, and then, using GDB (using bt command) or Vistual Studio's debugger, inspect the current STACK TRACE.