Tre*_*ens 5 c xcode objective-c lldb
有一个我用C编写的函数,我想在调试器中使用它来向javascript引擎发送命令.由于此函数不直接在代码中使用,因此链接器会剥离此符号.有没有办法将特定功能标记为不被剥离?
Tre*_*ens 5
找到了!
http://disanji.net/iOS_Doc/#documentation/DeveloperTools/Conceptual/XcodeBuildSystem/500-Linking/bs_linking.html
声明应该有
__attribute__((used))
归档时间:
13 年,6 月 前
查看次数:
532 次
最近记录: