You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the record, objc_msgSend() is not a variadic function. It's a hand-coded assembly trampoline that finds the real function and calls it. The real function uses normal C calling conventions, not varargs conventions (unless, of course, it actually includes varargs itself).
When using objc_msgSend() directly in code, you must cast it to the appropriate type. For example, in order to call a theoretical method -[NSObject setInteger:(int)i] you need to say
Activity
catamorphism commentedon Apr 22, 2013
Nominating for "maturity #3 - feature complete"
emberian commentedon Jul 12, 2013
Triage bump
catamorphism commentedon Oct 24, 2013
Low, not 1.0
lilyball commentedon Nov 5, 2013
For the record,
objc_msgSend()
is not a variadic function. It's a hand-coded assembly trampoline that finds the real function and calls it. The real function uses normal C calling conventions, not varargs conventions (unless, of course, it actually includes varargs itself).When using
objc_msgSend()
directly in code, you must cast it to the appropriate type. For example, in order to call a theoretical method-[NSObject setInteger:(int)i]
you need to sayAuto merge of rust-lang#3461 - tiif:add_localtime_r_shim, r=RalfJung
Add documentation for cover properties (rust-lang#2057)
Auto merge of rust-lang#3743 - newpavlov:pread_pwrite, r=RalfJung