diff options
Diffstat (limited to 'libobjc/objc/deprecated/struct_objc_selector.h')
-rw-r--r-- | libobjc/objc/deprecated/struct_objc_selector.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libobjc/objc/deprecated/struct_objc_selector.h b/libobjc/objc/deprecated/struct_objc_selector.h new file mode 100644 index 000000000..34aaf0d8b --- /dev/null +++ b/libobjc/objc/deprecated/struct_objc_selector.h @@ -0,0 +1,20 @@ +/* This struct used to be public, but is now private to the runtime. */ + +/* +** Definition of a selector. Selectors themselves are not unique, but +** the sel_id is a unique identifier. +*/ +struct objc_selector +{ + void *sel_id; + const char *sel_types; +}; + +inline static BOOL +sel_eq (SEL s1, SEL s2) +{ + if (s1 == 0 || s2 == 0) + return s1 == s2; + else + return s1->sel_id == s2->sel_id; +} |