函数体中打印日志信息自动附加函数名字的一种实现办法
一段代码,在Windows下的VC环境下编译没问题,在Linux的GCC下会报一个错误:error: ‘L__FUNCTION__’ was not declared inthis scope 对此的解释:In GCC 3.3 and earlier, in C only, __FUNCTION__ and __PRETTY_FUNCTION__ were trea
原创
2012-05-05 21:54:29 ·
2306 阅读 ·
0 评论