Whether macros are defined:
__FILE__, __LINE__, __PRETTY_FUNCTION__
at release build?
UPD Compiler GCCv4.4.3, IDE QtCreator
Whether macros are defined:
__FILE__, __LINE__, __PRETTY_FUNCTION__
at release build?
UPD Compiler GCCv4.4.3, IDE QtCreator
Yes, macros are defined regardless of the type of assembly. You can check it up simply by adding a view call.
printf ("File is %s. Line is %d.", __FILE__, __LINE__);
And try? This is absolutely not difficult.
But from my experience I will say - yes, they are determined, since they do not depend on the type of assembly and are substituted by the preprocessor at the initial stages.
__PRETTY_FUNCTION__
does not define __PRETTY_FUNCTION__
. Read this , I think you will find the appropriate answers. - KoVadimSource: https://ru.stackoverflow.com/questions/70385/
All Articles