mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Nesting
This commit is contained in:
@@ -91,6 +91,10 @@ macro_rules! read_buffer {
|
||||
}
|
||||
}
|
||||
}};
|
||||
($buffer:ident) => {{
|
||||
let buffer = crate::wasm::get_buffer!($buffer);
|
||||
buffer.try_lock().and_then(|lock| lock.borrow_mut().take())
|
||||
}};
|
||||
}
|
||||
|
||||
pub(crate) use get_buffer;
|
||||
|
||||
Reference in New Issue
Block a user