summaryrefslogtreecommitdiffstats
path: root/generic/tclOOInt.h
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-01-28 10:25:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-01-28 10:25:03 (GMT)
commitcd034550642034bd5b4eabf2e0ea1cd5cf06719c (patch)
tree5b3c218fe68fcb9e058cf40de629094ec43f22d5 /generic/tclOOInt.h
parent3ec5feb3637f136b6c659eb42c52100c41f2e8ca (diff)
downloadtcl-cd034550642034bd5b4eabf2e0ea1cd5cf06719c.zip
tcl-cd034550642034bd5b4eabf2e0ea1cd5cf06719c.tar.gz
tcl-cd034550642034bd5b4eabf2e0ea1cd5cf06719c.tar.bz2
Improvements to destructor handling.
Stop crashes from odd destruction routes.
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. */