test
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#[macro_export]
|
||||
macro_rules! components {
|
||||
($($a:ty: $e:expr),*) => {
|
||||
{
|
||||
let mut hm: HashMap<TypeId, Box<dyn Component>> = HashMap::new();
|
||||
$(
|
||||
hm.insert(TypeId::of::<$a>(), Box::new($e));
|
||||
)*
|
||||
hm
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user