summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bleh_darwin.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/bleh_darwin.m b/bleh_darwin.m
index 1c42cca..bfd685f 100644
--- a/bleh_darwin.m
+++ b/bleh_darwin.m
@@ -43,7 +43,7 @@ I use int64_t for maximum safety, as my coordinates are stored as Go ints and Go
*/
/*
-This is not documented in the docs, but is in various places on apple.com. In fact, the docs are actually WRONG: they say you pass a pointer to the structure as the first argument to objc_msgSend_stret()! And there might be some cases where we can't use stret because the struct is small enough... we'll see. (TODO)
+This is not documented in the docs, but is in various places on apple.com. In fact, the docs are actually WRONG: they say you pass a pointer to the structure as the first argument to objc_msgSend_stret()! And there might be some cases where we can't use stret because the struct is small enough...
*/
static NSRect (*objc_msgSend_stret_rect)(id, SEL, ...) =
(NSRect (*)(id, SEL, ...)) objc_msgSend_stret;
@@ -82,8 +82,11 @@ id _objc_msgSend_rect_uint_uint_bool(id obj, SEL sel, int64_t x, int64_t y, int6
Same as NSRect above, but for NSSize now.
*/
+/*
+...like this one. (Note which function is being cast below.)
+*/
static NSSize (*objc_msgSend_stret_size)(id, SEL, ...) =
- (NSSize (*)(id, SEL, ...)) objc_msgSend_stret;
+ (NSSize (*)(id, SEL, ...)) objc_msgSend;
struct xsize objc_msgSend_stret_size_noargs(id obj, SEL sel)
{