diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-02-03 14:12:24 +0100 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-02-03 14:12:24 +0100 |
commit | 3f7b0e5500bb23581e3a5bc94feb9ecd624ae130 (patch) | |
tree | 93360aebe2206c97f24a1689d4ef0b01a431d684 /Objective-C/libobjcl.m | |
parent | 36215d830f5762278f16d6c97e1ac7068653f366 (diff) |
Objective-C layer: Add objcl_class_superclass.
darcs-hash:31c261f7b04e09756c407599560a5ef5c3bc5856
Diffstat (limited to 'Objective-C/libobjcl.m')
-rw-r--r-- | Objective-C/libobjcl.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m index 3fc2300..5161a52 100644 --- a/Objective-C/libobjcl.m +++ b/Objective-C/libobjcl.m @@ -20,6 +20,7 @@ #import "libobjcl.h" #import "PyObjC/libffi_support.h" #import "PyObjC/objc_support.h" +#import "PyObjC/objc-runtime-compat.h" #import <Foundation/Foundation.h> #include <stdarg.h> @@ -207,6 +208,17 @@ objcl_class_name (Class class) } +Class +objcl_class_superclass (Class class) +{ +#ifdef __NEXT_RUNTIME__ + return class_getSuperclass (class); +#else + return class_get_super_class (class); +#endif +} + + const char * objcl_selector_name (SEL selector) { |