This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / Any one can tell me how can I print out function name in my trace code in C/C++? __FUNCTION__ or __func__ dose not work. How could I make it work? Thank you very much.
-yaning98(May);
2011-4-23
(#6637659@0)
-
It is on Windows, and VC++ 6.0 compiler.
-yaning98(May);
2011-4-23
(#6637873@0)
-
__FUNCTION__ and __func__ might be C99 while VC++ 6.0 is not C99 compatible. Try __FILE__ and __LINE__ to work around but it may be painful.
-kaia(顺流逆流);
2011-4-23
(#6637919@0)