prelude and transform macro

This commit is contained in:
2025-07-29 19:42:56 +02:00
parent 26eb1679f6
commit 71660418a1
6 changed files with 40 additions and 9 deletions
+9
View File
@@ -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)*) => {{