开发者

How can I do inline function calls in Objective-C? [closed]

It&开发者_StackOverflow社区#39;s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

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++.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜