We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好,在您的代码中有一个强制内联的函数 static force_inline NSString *LSAnimatorChainAnimationKey(NSInteger index) { return [NSString stringWithFormat:@"%@_%@", kLSAnimatorKey, @(index)]; } 这里我有一个疑问,为什么要强制内联呢?非常期待您的回复
The text was updated successfully, but these errors were encountered:
Emmmmm... 因为这个方法没必要跳堆栈 提高效率
Sorry, something went wrong.
那如果用inline,而不是强制内联呢?inline和force inline有什么区别呢?
https://gcc.gnu.org/onlinedocs/gcc/Inline.html
现在已经用 NS_INLINE 替换了 force inline
No branches or pull requests
您好,在您的代码中有一个强制内联的函数
static force_inline NSString *LSAnimatorChainAnimationKey(NSInteger index) {
return [NSString stringWithFormat:@"%@_%@", kLSAnimatorKey, @(index)];
}
这里我有一个疑问,为什么要强制内联呢?非常期待您的回复
The text was updated successfully, but these errors were encountered: