I want to call functions inline in Objective-C. Can anyone give me an example of how to do this?
我想在Objective-C中调用内联函数。谁能给我一个如何做到这一点的例子?
1 个解决方案
#1
21
Since Objective-C is based on C, you can:
由于Objective-C基于C,您可以:
inline void myf() {int a; a=1;}
Objective-C does not support "inline" methods a la C++.
Objective-C不支持“内联”方法和C ++。
#1
21
Since Objective-C is based on C, you can:
由于Objective-C基于C,您可以:
inline void myf() {int a; a=1;}
Objective-C does not support "inline" methods a la C++.
Objective-C不支持“内联”方法和C ++。