summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-07-27 20:29:42 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-07-27 20:29:42 (GMT)
commit15ca940ca7c564de29ebeeca34c8140599a831e8 (patch)
tree826d164504d73a621e72379ab5694256271b4c28 /generic/tclCompile.h
parent525bc7c9b5eae7dabda051ca19c6246925bbf450 (diff)
downloadtcl-15ca940ca7c564de29ebeeca34c8140599a831e8.zip
tcl-15ca940ca7c564de29ebeeca34c8140599a831e8.tar.gz
tcl-15ca940ca7c564de29ebeeca34c8140599a831e8.tar.bz2
Simplify AuxData access with a macro.
Diffstat (limited to 'generic/tclCompile.h')
-rw-r--r--generic/tclCompile.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/tclCompile.h b/generic/tclCompile.h
index 56315db..beb28fd 100644
--- a/generic/tclCompile.h
+++ b/generic/tclCompile.h
@@ -1113,6 +1113,15 @@ MODULE_SCOPE Tcl_Obj *TclNewInstNameObj(unsigned char inst);
*----------------------------------------------------------------
*/
+/*
+ * Simplified form to access AuxData.
+ *
+ * ClientData TclFetchAuxData(CompileEng *envPtr, int index);
+ */
+
+#define TclFetchAuxData(envPtr, index) \
+ (envPtr)->auxDataArrayPtr[(index)].clientData
+
#define LITERAL_ON_HEAP 0x01
#define LITERAL_CMD_NAME 0x02