aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-06-03 12:23:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-06-03 12:23:34 +0200
commitef130e855b5ac0f4acbb8b5b6fcd14069df8afe5 (patch)
tree6bdbe9f549ccc6358ae214b6b24e1af243d019cf /libbuild2/variable.txx
parent88b0aed33748ba4a3b3635063999cbf98a434672 (diff)
Reset value::extra on variable_map value change/version increment
The reset on each modification semantics is used to implement the default value distinction as currently done in the config module but later probably will be done for ?= and $origin().
Diffstat (limited to 'libbuild2/variable.txx')
-rw-r--r--libbuild2/variable.txx1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbuild2/variable.txx b/libbuild2/variable.txx
index b1c4112..d75befb 100644
--- a/libbuild2/variable.txx
+++ b/libbuild2/variable.txx
@@ -1070,6 +1070,7 @@ namespace build2
e.stem_version = sver;
+ e.value.extra = 0; // For consistency (we don't really use it).
e.value.version++; // Value changed.
}
else