surrealpatch/lib/src/mac/mod.rs

14 lines
265 B
Rust
Raw Normal View History

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
}};
}