summaryrefslogtreecommitdiff
path: root/src/macro_rules/macro_rules.hpp
diff options
context:
space:
mode:
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 dcd1bbd3..9568019a 100644
--- a/src/macro_rules/macro_rules.hpp
+++ b/src/macro_rules/macro_rules.hpp
@@ -15,6 +15,7 @@ class MacroExpander;
TAGGED_UNION_EX(MacroExpansionEnt, (: public Serialisable), Token, (
// TODO: have a "raw" stream instead of just tokens
(Token, Token),
+ // TODO: This is a bit-mangled number, what does it mean?
(NamedValue, unsigned int),
(Loop, struct {
/// Contained entries
@@ -39,7 +40,7 @@ struct MacroPatEnt:
public Serialisable
{
::std::string name;
- unsigned int name_index;
+ unsigned int name_index = 0;
Token tok;
::std::vector<MacroPatEnt> subpats;