Skip to content
New issue

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

关于 super 直接使用 objc_msgSendSuper 实现的问题 #27

Open
tripleCC opened this issue Mar 26, 2020 · 0 comments
Open

关于 super 直接使用 objc_msgSendSuper 实现的问题 #27

tripleCC opened this issue Mar 26, 2020 · 0 comments

Comments

@tripleCC
Copy link

/* Basic Messaging Primitives
 *
 * On some architectures, use objc_msgSend_stret for some struct return types.
 * On some architectures, use objc_msgSend_fpret for some float return types.
 * On some architectures, use objc_msgSend_fp2ret for some float return types.
 *
 * These functions must be cast to an appropriate function pointer type 
 * before being called. 
 */

根据苹果关于 objc_msgSend 的注释,对于部分返回 struct 的方法,是否应该使用 objc_msgSendSuper_stret ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant