diff options
author | dgp <dgp@noemail.net> | 2013-07-27 20:29:42 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2013-07-27 20:29:42 (GMT) |
commit | 0050724acacdaf86ccaca11c938d091c707eb8ff (patch) | |
tree | bd37b635cc9fa03f2e8ffe818cefcb3b712c6cd7 /generic/tclCompile.h | |
parent | a131e49614518289f49ec2a6c51e42c3fa3a1cd0 (diff) | |
download | tcl-0050724acacdaf86ccaca11c938d091c707eb8ff.zip tcl-0050724acacdaf86ccaca11c938d091c707eb8ff.tar.gz tcl-0050724acacdaf86ccaca11c938d091c707eb8ff.tar.bz2 |
Simplify AuxData access with a macro.
FossilOrigin-Name: 3f7279e103011d081dfecf7559aa7ea763070a17
Diffstat (limited to 'generic/tclCompile.h')
-rw-r--r-- | generic/tclCompile.h | 9 |
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 |