I just fooled myself: I wanted to track the process, and for this I wrote a function trace()that contains the following line of code:
printf("%s[%s:%d], %s\n", __FUNCTION__, __FILE__, __LINE__, s_message);
I was hoping to see which function I am in, in which file and which line in this file, but I just saw information about the file in which I programmed this function trace().
Is it possible, #defineanyway, to tell the C compiler to take the mentioned macros from the parent of the calling function?
source
share