How can I do inline function calls in Objective-C? [closed]
The community reviewed whether to reopen this question 6 months ago and left it closed:
Original close reason(s) were not resolved
I want to call functions inline in Objective-C. How can I do this? I'm on iOS.
Since Objective-C is based on C, you can:
inline void myf() {int a; a=1;}
Objective-C does not support "inline" methods a la C++.
精彩评论