summaryrefslogtreecommitdiff
path: root/Objective-C/libobjcl.m
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-02-17 14:17:53 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-02-17 14:17:53 +0100
commit938a371de94ecbe2b4ccc72670dbfc8a68b50aa1 (patch)
treeef1da0dca61195ec46ecb7176ef78a040e9cbe6d /Objective-C/libobjcl.m
parent061a969f39f50c365369e28b5182d547f81ee11d (diff)
Fix ENSURE-OBJECTIVE-C-CLASS-PAIR.
darcs-hash:cd2b28bb4e252e25afb6807e32d092fcbd9c0977
Diffstat (limited to 'Objective-C/libobjcl.m')
-rw-r--r--Objective-C/libobjcl.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m
index dc44c2d..c933e49 100644
--- a/Objective-C/libobjcl.m
+++ b/Objective-C/libobjcl.m
@@ -284,6 +284,17 @@ objcl_class_superclass (Class class)
}
+MetaClass
+objcl_class_metaclass (Class class)
+{
+#ifdef __NEXT_RUNTIME__
+ return objc_getMetaClass (class);
+#else
+ return class_get_meta_class (class);
+#endif
+}
+
+
const char *
objcl_selector_name (SEL selector)
{