]> Repositorios git - scryer-prolog.git/commitdiff
make atom!() with a new value less annoying
authorBennet Bleßmann <[email protected]>
Sun, 20 Jul 2025 21:04:01 +0000 (23:04 +0200)
committerBennet Bleßmann <[email protected]>
Fri, 1 Aug 2025 18:27:53 +0000 (20:27 +0200)
build/static_string_indexing.rs

index a577a51745064c136bc3f7a44cbf2553ddd480f2..7309f1cfdb326791df7804e310b6d9aea576c48a 100644 (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! {