Make macros private

This commit is contained in:
bakaq
2024-09-06 16:51:10 -03:00
parent 806e980cca
commit ada9ba98cc
15 changed files with 20 additions and 86 deletions

View File

@@ -3281,14 +3281,14 @@ pub fn generate_instructions_rs() -> TokenStream {
}
}
#[macro_export]
macro_rules! _instr {
#(
#instr_macro_arms
);*
}
pub use _instr as instr; // https://github.com/rust-lang/rust/pull/52234#issuecomment-976702997
// https://github.com/rust-lang/rust/pull/52234#issuecomment-976702997
pub(crate) use _instr as instr;
}
}

View File

@@ -164,7 +164,6 @@ pub fn index_static_strings(instruction_rs_path: &std::path::Path) -> TokenStrea
)*
];
#[macro_export]
macro_rules! atom {
#((#static_strs) => { Atom { index: #indices_iter } };)*
}