RSX dependency
This commit is contained in:
@@ -48,9 +48,9 @@ fn app(cx: &Arc<Context>) -> View {
|
||||
}
|
||||
}
|
||||
|
||||
// for %count, mount as _, (i in 0..count.get_dl()) {
|
||||
// "{i}"
|
||||
// }
|
||||
for %count, mount as _, (i in 0..count.get_dl()) {
|
||||
"{i}"
|
||||
}
|
||||
}
|
||||
.view(cx.clone())
|
||||
}
|
||||
|
||||
@@ -17,6 +17,8 @@ macro_rules! rsx {
|
||||
macro_rules! rsx_scope {
|
||||
($rsx:expr, for $(%$($dep:ident $(as $dp:pat,)?),+)? ($p:pat in $v:expr) {$($inner:tt)*} $($rest:tt)*) => {
|
||||
{
|
||||
$($($crate::rsx_dep!($dep);)+)?
|
||||
|
||||
$rsx.dynamic_scope({
|
||||
$($($crate::rsx_dep!($dep $(as $dp)?);)+)?
|
||||
move |scope| {
|
||||
@@ -32,6 +34,8 @@ macro_rules! rsx_scope {
|
||||
|
||||
($rsx:expr, if $(%$($dep:ident $(as $dp:pat,)?),+)? ($st:expr) {$($inner:tt)*} $($rest:tt)*) => {
|
||||
{
|
||||
$($($crate::rsx_dep!($dep);)+)?
|
||||
|
||||
$rsx.dynamic_scope({
|
||||
$($($crate::rsx_dep!($dep $(as $dp)?);)+)?
|
||||
move |scope| {
|
||||
|
||||
Reference in New Issue
Block a user