make atom!() with a new value less annoying

This commit is contained in:
Bennet Bleßmann
2025-07-20 23:04:01 +02:00
committed by Bennet Bleßmann
parent 97e2e5d7f0
commit 746d4fd106

View File

@@ -194,6 +194,7 @@ pub fn index_static_strings(instruction_rs_path: &std::path::Path) -> TokenStrea
macro_rules! atom {
#((#static_str_keys) => { Atom { index: #indices } };)*
($name:literal) => {compile_error!(concat!("unknown static atom ", $name))};
}
pub static STATIC_ATOMS_MAP: phf::Map<&'static str, Atom> = phf::phf_map! {