summaryrefslogtreecommitdiff
path: root/src/macro_rules/macro_rules.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-27 09:28:49 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-27 09:28:49 +0800
commitcfce816b251f4ba19c3fcc3ac53467c1a1159552 (patch)
treed3dd7acd85fe4280f7b541f17ed688cca32bd086 /src/macro_rules/macro_rules.hpp
parent81195b7af639389d7810956efce664c1f545fce8 (diff)
downloadmrust-cfce816b251f4ba19c3fcc3ac53467c1a1159552.tar.gz
macro_rules - Update logic for determining if a loop should be expanded
Diffstat (limited to 'src/macro_rules/macro_rules.hpp')
-rw-r--r--src/macro_rules/macro_rules.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/macro_rules/macro_rules.hpp b/src/macro_rules/macro_rules.hpp
index 550068b8..ddf11dcb 100644
--- a/src/macro_rules/macro_rules.hpp
+++ b/src/macro_rules/macro_rules.hpp
@@ -31,7 +31,8 @@ TAGGED_UNION_EX(MacroExpansionEnt, (: public Serialisable), Token, (
/// Token used to join iterations
Token joiner;
/// List of variables within this loop that control its iteration count
- ::std::set< unsigned int> variables;
+ /// Boolean is true if the variable will be unconditionally expanded
+ ::std::map< unsigned int, bool> variables;
})
),
(),