summaryrefslogtreecommitdiffstats
path: root/generic/tclOOInt.h
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2010-01-28 10:25:03 (GMT)
committerdkf <dkf@noemail.net>2010-01-28 10:25:03 (GMT)
commit2b4dad9a4ecca00563cd4c957fffaf8e1662dec6 (patch)
tree5b3c218fe68fcb9e058cf40de629094ec43f22d5 /generic/tclOOInt.h
parent02a01f02b98fdfec22412cfd500756cfd354b7ee (diff)
downloadtcl-2b4dad9a4ecca00563cd4c957fffaf8e1662dec6.zip
tcl-2b4dad9a4ecca00563cd4c957fffaf8e1662dec6.tar.gz
tcl-2b4dad9a4ecca00563cd4c957fffaf8e1662dec6.tar.bz2
Improvements to destructor handling.
Stop crashes from odd destruction routes. FossilOrigin-Name: ca70f094be1873138d5f9fb8b0d0787e451c3a23
Diffstat (limited to 'generic/tclOOInt.h')
-rw-r--r--generic/tclOOInt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclOOInt.h b/generic/tclOOInt.h
index 86bc9d3..aea18e2 100644
--- a/generic/tclOOInt.h
+++ b/generic/tclOOInt.h
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclOOInt.h,v 1.13 2009/12/21 23:25:39 nijtmans Exp $
+ * RCS: @(#) $Id: tclOOInt.h,v 1.14 2010/01/28 10:25:05 dkf Exp $
*/
#ifndef TCL_OO_INTERNAL_H
@@ -199,6 +199,8 @@ typedef struct Object {
#define OBJECT_DELETED 1 /* Flag to say that an object has been
* destroyed. */
+#define DESTRUCTOR_CALLED 2 /* Flag to say that the destructor has been
+ * called. */
#define ROOT_OBJECT 0x1000 /* Flag to say that this object is the root of
* the class hierarchy and should be treated
* specially during teardown. */