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.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/macro_rules/macro_rules.hpp b/src/macro_rules/macro_rules.hpp
index ddf11dcb..30e3e45b 100644
--- a/src/macro_rules/macro_rules.hpp
+++ b/src/macro_rules/macro_rules.hpp
@@ -135,9 +135,12 @@ class MacroRules:
public Serialisable
{
public:
- bool m_exported;
+ /// Marks if this macro should be exported from the defining crate
+ bool m_exported = false;
- ::std::string m_source_crate; // Populated on load, used for $crate
+ /// Crate that defined this macro
+ /// - Populated on deserialise if not already set
+ ::std::string m_source_crate;
/// Expansion rules
::std::vector<MacroRulesArm> m_rules;