diff options
Diffstat (limited to 'objc_darwin.h')
| -rw-r--r-- | objc_darwin.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/objc_darwin.h b/objc_darwin.h index 173f238..1c960d5 100644 --- a/objc_darwin.h +++ b/objc_darwin.h @@ -10,12 +10,19 @@ Furthermore, Objective-C selectors work by basically sending the arguments to ob The format should be self-explanatory. */ +/* for some reason I now have to use an include guard after commit [master 9b4e30c] ("Started to build a single global delegate object; now to fix issues.") */ +#ifndef _OBJC_DARWIN_H_ +#define _OBJC_DARWIN_H_ + #include <objc/message.h> #include <objc/objc.h> #include <objc/runtime.h> #include <stdint.h> +/* for delegate_darwin.go */ +extern Class NilClass; + inline id objc_msgSend_noargs(id obj, SEL sel) { return objc_msgSend(obj, sel); @@ -77,3 +84,5 @@ m3(sel_id_bool, SEL, id, BOOL) 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) + +#endif |
