aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2023-02-24 12:59:56 +1000
committerSteve Bennett <steveb@workware.net.au>2023-02-24 13:02:31 +1000
commit7eb6fdddafb7ee98afd8dc170a23bfbb32708994 (patch)
tree9cfdb2dc8baffea9d0c58286b06be4c3c550f62d /jim.h
parent23603d8c3d482a9f92a949c9da1c71a0c8e68343 (diff)
downloadjimtcl-7eb6fdddafb7ee98afd8dc170a23bfbb32708994.zip
jimtcl-7eb6fdddafb7ee98afd8dc170a23bfbb32708994.tar.gz
jimtcl-7eb6fdddafb7ee98afd8dc170a23bfbb32708994.tar.bz2
dict with: return script result
Previously dict with returned the new dict value. Also fix an issue in the case where a dict element mirrors the name of the dictionary. Fixes: #241 Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.h')
-rw-r--r--jim.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/jim.h b/jim.h
index 4162e5e..55788d6 100644
--- a/jim.h
+++ b/jim.h
@@ -154,6 +154,7 @@ extern "C" {
#define JIM_ENUM_ABBREV 2 /* Jim_GetEnum() - Allow unambiguous abbreviation */
#define JIM_UNSHARED 4 /* Jim_GetVariable() - return unshared object */
#define JIM_MUSTEXIST 8 /* Jim_SetDictKeysVector() - fail if non-existent */
+#define JIM_NORESULT 16 /* Jim_SetDictKeysVector() - don't store the result in the interp result */
/* Flags for Jim_SubstObj() */
#define JIM_SUBST_NOVAR 1 /* don't perform variables substitutions */