//
// define __FRIENDLY_FUNCTION__ for more info
//
#ifdef _MSC_VER
# define __FRIENDLY_FUNCTION__ __FUNCSIG__
#else
# ifdef __GNUC__
# define __FRIENDLY_FUNCTION__ __PRETTY_FUNCTION__
# else
# define __FRIENDLY_FUNCTION__ __FUNCTION__
# endif
#endif
其中:
__FRIENDLY_FUNCTION__ 的格式类似于 : void __cdecl f1(int)
而 __FUNCTION__ 则是 f1