From: Bennet Bleßmann Date: Sun, 20 Jul 2025 21:04:01 +0000 (+0200) Subject: make atom!() with a new value less annoying X-Git-Tag: v0.10.0~35^2^2~22 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=746d4fd10663ce612b12b4727dfe331a348c5cce;p=scryer-prolog.git make atom!() with a new value less annoying --- diff --git a/build/static_string_indexing.rs b/build/static_string_indexing.rs index a577a517..7309f1cf 100644 --- a/build/static_string_indexing.rs +++ b/build/static_string_indexing.rs @@ -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! {