prelude and transform macro
This commit is contained in:
@@ -123,6 +123,15 @@ macro_rules! event_handler {
|
||||
}};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! transform {
|
||||
($($f:ident: $v:expr),* $(,)?) => {{
|
||||
let mut t = Transform::new();
|
||||
$(t.$f = $v.into();)*
|
||||
t
|
||||
}};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! rsx {
|
||||
($($inner:tt)*) => {{
|
||||
|
||||
Reference in New Issue
Block a user