summaryrefslogtreecommitdiff
path: root/Objective-C
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-02-16 21:58:48 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-02-16 21:58:48 +0100
commitc61f86dce1eb244fb775e74043070e32e6fdcaaf (patch)
tree7c6d0a4763921321c331462e8e9b925a8fa34beb /Objective-C
parent23aeccec01d4e888885cca03c6557f2f0542ab0c (diff)
Add module: instance-management.
darcs-hash:79549f0b837006321061a524ad376df397a9ab5a
Diffstat (limited to 'Objective-C')
-rw-r--r--Objective-C/libobjcl.h3
-rw-r--r--Objective-C/libobjcl.m7
2 files changed, 10 insertions, 0 deletions
diff --git a/Objective-C/libobjcl.h b/Objective-C/libobjcl.h
index 26dca23..4b26fae 100644
--- a/Objective-C/libobjcl.h
+++ b/Objective-C/libobjcl.h
@@ -193,3 +193,6 @@ objcl_class_backed_by_lisp_class_p (Class class);
void
objcl_class_set_backed_by_lisp_class (Class class, int backed_p);
+
+int
+objcl_object_backed_by_lisp_class_p (id object);
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m
index 141c069..cd35b86 100644
--- a/Objective-C/libobjcl.m
+++ b/Objective-C/libobjcl.m
@@ -797,3 +797,10 @@ objcl_class_set_backed_by_lisp_class (Class class, int backed_p)
{
[class __objcl_setBackedByLispClass: backed_p];
}
+
+
+int
+objcl_object_backed_by_lisp_class_p (id object)
+{
+ return [[object class] __objcl_isBackedByLispClass];
+}