Macro bevy_retrograde_macros::items_attr [−][src]
macro_rules! items_attr { ($attr : ident($meta : meta), { $($item : item) * }) => { ... }; }
Expand description
Utility macro for adding an attribute to a batch of items
Example
// Only import these libraries for wasm targets items_attr!(cfg(wasm), { use web_sys; use js_sys; });