diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-09 10:47:09 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-09 10:47:09 +0800 |
commit | 0241926381c1f069f1b1cfd8e46288e86c49f125 (patch) | |
tree | d7dbd895b823bdc14b9fd4234c67aeb5a93c9832 /src/macro_rules | |
parent | 967ccfbfd50e0ce0aec985bcb394e34787450f75 (diff) | |
download | mrust-0241926381c1f069f1b1cfd8e46288e86c49f125.tar.gz |
macro_rules - #[macro_export] handling, plan for #[macro_reexport]
Diffstat (limited to 'src/macro_rules')
-rw-r--r-- | src/macro_rules/macro_rules.hpp | 7 |
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;
|