Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
12
third-party/vendor/wasm-bindgen/tests/wasm/macro_rules.rs
vendored
Normal file
12
third-party/vendor/wasm-bindgen/tests/wasm/macro_rules.rs
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
//! This tests that the `wasm_bindgen` macro produces code that compiles for this use case.
|
||||
//! `cargo test --target wasm32-unknown-unknown` will not run if this test breaks.
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
macro_rules! my_export {
|
||||
($i: ident, $s: ty) => {
|
||||
#[wasm_bindgen]
|
||||
pub fn $i(_: $s) {}
|
||||
};
|
||||
}
|
||||
|
||||
my_export!(should_compile, &[i32]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue