StupidBeauty
Read times:1067Posted at:Thu Oct 24 20:43:14 2013
- no title specified

转载:NSLog打印当前文件,当前函数,当前行数

ObjectiveC中,也像C++一样,可以使用一些宏来表示当前的源代码文件名、行号、函数名:__FILE__,__FUNCTION__,__LINE__。顾名思义就知道这些宏分别是代表什么了。要注意,大写字母左右两侧分别都有两个下划线的,wordpress在发布勃客文章的时候爱把两个下划线替换成一个。

http://www.cnblogs.com/shenfei2031/archive/2011/08/06/2129636.html

亮点:

NSLog打印当前文件,当前函数,当前行数

NSLog(@”%s, %s, %d”, __FILE__, __FUNCTION__, __LINE__);

让用户满意 、令用户放心

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4