Re: Which flavor of objc_msgSend for NSSize return
Re: Which flavor of objc_msgSend for NSSize return
- Subject: Re: Which flavor of objc_msgSend for NSSize return
- From: Sherm Pendley <email@hidden>
- Date: Fri, 11 May 2007 15:50:39 -0400
On May 11, 2007, at 3:13 PM, Rosyna wrote:
I'm trying to call a method that returns an NSSize on i386. Do I
use objc_msgSend, _fpret, or _stret?
CamelBones uses _stret for all of NSPoint, NSRange, NSRect, and
NSSize. It only uses _fpret on Intel if the return is a plain old
float or double, not a struct of any sort.
NSSize is small, so the size qualifies for the plain objc_msgSend.
"Small" is small enough to fit in one register, but two floats don't.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden