surrealpatch/lib/src/mac/mod.rs
2022-07-27 14:13:30 +01:00

13 lines
265 B
Rust

macro_rules! bytes {
($expression:expr) => {
format!("{}\n", $expression).into_bytes()
};
}
macro_rules! map {
($($k:expr => $v:expr),* $(,)?) => {{
let mut m = ::std::collections::BTreeMap::new();
$(m.insert($k, $v);)+
m
}};
}