I read about __FUNCTION__/ __func__in C / C ++ (they are used to print the name of the function in which they are used). Every place I read, they said that these are macros and are replaced during preprocessing. So, I explored this by seeing the pre-processed output using the command gcc -E prog.c. But I saw that they __func__were neither __FUNCTION__replaced by the function name by the preprocessor.
So is this a macro? If not, what is it and how is it implemented?
EDIT
I even tried it cpp prog.c. But still not replaced.
Also __ FILE__, __LINE__ and __FUNCTION__ use in C ++ this post says that it never affects performance. Please clarify.
source
share