1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#[cfg(target_arch = "wasm32")] macro_rules! with_harness { ($($tt:item)*) => { $( #[wasm_bindgen_test::wasm_bindgen_test] $tt )* }; } #[cfg(not(target_arch = "wasm32"))] macro_rules! with_harness { ($($tt:item)*) => { $( #[test] $tt )* }; }