Added objc_msgSend_stret_size_noargs(), needed by the Mac OS X sysData.preferredSize().
This commit is contained in:
parent
a3b01892fd
commit
3def6f6dac
|
@ -44,3 +44,18 @@ id _objc_msgSend_rect_uint_uint_bool(id obj, SEL sel, int64_t x, int64_t y, int6
|
||||||
{
|
{
|
||||||
return objc_msgSend(obj, sel, OurRect(), (NSUInteger) b, (NSUInteger) c, d);
|
return objc_msgSend(obj, sel, OurRect(), (NSUInteger) b, (NSUInteger) c, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Same as NSRect above, but for NSSize now.
|
||||||
|
*/
|
||||||
|
|
||||||
|
struct xsize objc_msgSend_stret_size_noargs(id obj, SEL sel)
|
||||||
|
{
|
||||||
|
NSSize s;
|
||||||
|
struct xsize t;
|
||||||
|
|
||||||
|
objc_msgSend_stret(&s, obj, sel);
|
||||||
|
t.width = (int64_t) s.width;
|
||||||
|
t.height = (int64_t) s.height;
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
|
@ -21,6 +21,13 @@ inline id objc_msgSend_noargs(id obj, SEL sel)
|
||||||
return objc_msgSend(obj, sel);
|
return objc_msgSend(obj, sel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct xsize {
|
||||||
|
int64_t width;
|
||||||
|
int64_t height;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern struct xsize objc_msgsSend_stret_size_noargs(id obj, SEL sel);
|
||||||
|
|
||||||
#define m1(name, type1) \
|
#define m1(name, type1) \
|
||||||
inline id objc_msgSend_ ## name (id obj, SEL sel, type1 a) \
|
inline id objc_msgSend_ ## name (id obj, SEL sel, type1 a) \
|
||||||
{ \
|
{ \
|
||||||
|
|
Loading…
Reference in New Issue