summaryrefslogtreecommitdiff
path: root/darwintest/objc_darwin.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-28 19:34:18 -0500
committerPietro Gagliardi <[email protected]>2014-02-28 19:34:18 -0500
commitfabddf9e0ecfe5097b1cf0c8a9724cbf4e533e13 (patch)
tree8b19ea7204c19be9a61b5a4e0c0877ab43390737 /darwintest/objc_darwin.h
parent8af591388f3bc0295ba196135452e29e845925a8 (diff)
Added a .m file to handle the edge cases in objc_msgSend() wrappers that cannot be easily expressed otherwise.
Diffstat (limited to 'darwintest/objc_darwin.h')
-rw-r--r--darwintest/objc_darwin.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/darwintest/objc_darwin.h b/darwintest/objc_darwin.h
index 85bf0b4..abf9712 100644
--- a/darwintest/objc_darwin.h
+++ b/darwintest/objc_darwin.h
@@ -14,6 +14,8 @@ The format should be self-explanatory.
#include <objc/objc.h>
#include <objc/runtime.h>
+#include <stdint.h>
+
/* TODO this HAS to be unsafe, but <objc/NSObjCRuntime.h> not found?! */
typedef unsigned long NSUInteger;
@@ -48,14 +50,14 @@ inline id objc_msgSend_noargs(id obj, SEL sel)
m1(str, char *) /* TODO Go string? */
m1(id, id)
-/* TODO NSRect */
+extern id _objc_msgSend_rect(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h);
m1(sel, SEL)
-m1(uint, NSUInteger)
+extern id _objc_msgSend_uint(id obj, SEL sel, uintptr_t a);
m2(id_id, id, id)
m3(id_id_id, id, id, id)
m3(sel_id_bool, SEL, id, BOOL)
-/* TODO NSRect */
+extern id _objc_msgSend_rect_uint_uint_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, uintptr_t b, uintptr_t c, BOOL d);
m4(id_sel_id_id, id, SEL, id, id)