summaryrefslogtreecommitdiffstats
path: root/generic/tclOO.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2009-07-19 11:46:52 (GMT)
committerdkf <dkf@noemail.net>2009-07-19 11:46:52 (GMT)
commitc89aa3f95bb9cb2bde54f8031c82617945ff8b0f (patch)
treea8a19f6d92c70e4d6476438a0e2ce346f2fc7fff /generic/tclOO.c
parente8e0651e043130679c479544f1c83282ab5974bf (diff)
downloadtcl-c89aa3f95bb9cb2bde54f8031c82617945ff8b0f.zip
tcl-c89aa3f95bb9cb2bde54f8031c82617945ff8b0f.tar.gz
tcl-c89aa3f95bb9cb2bde54f8031c82617945ff8b0f.tar.bz2
Expose function to efficiently return current name of an object.
FossilOrigin-Name: 0a8cf0ea4bd0ab835d91ca309f6369b18a91cfe6
Diffstat (limited to 'generic/tclOO.c')
-rw-r--r--generic/tclOO.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/generic/tclOO.c b/generic/tclOO.c
index c1e8678..4233020 100644
--- a/generic/tclOO.c
+++ b/generic/tclOO.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclOO.c,v 1.23 2009/07/12 14:51:30 dkf Exp $
+ * RCS: @(#) $Id: tclOO.c,v 1.24 2009/07/19 11:46:53 dkf Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -2439,7 +2439,7 @@ TclOOIsReachable(
/*
* ----------------------------------------------------------------------
*
- * TclOOObjectName --
+ * TclOOObjectName, Tcl_GetObjectName --
*
* Utility function that returns the name of the object. Note that this
* simplifies cache management by keeping the code to do it in one place
@@ -2465,6 +2465,14 @@ TclOOObjectName(
oPtr->cachedNameObj = namePtr;
return namePtr;
}
+
+Tcl_Obj *
+Tcl_GetObjectName(
+ Tcl_Interp *interp,
+ Tcl_Object object)
+{
+ return TclOOObjectName(interp, (Object *) object);
+}
/*
* ----------------------------------------------------------------------