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
Rename your function
void Function(param1) { }
to
void Function_debug(param1, char * file, char * func, unsigned long line) { }
Then #define a macro like this:
#define Function(param1) Function_debug(param1, __FILE__, __FUNCTION__, __LINE__)