@@ -8,12 +8,12 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
88#[ macro_export]
99#[ doc( hidden) ]
1010macro_rules! link {
11- ( $library: literal $abi: literal $( $link_name: literal) ? $( #[ $( $ doc: tt ) * ] ) * fn $name : ident ( $ ( $arg : ident : $argty : ty ) , * ) $ ( ->$ret : ty ) ? ) => (
11+ ( $library: literal $abi: literal $( $link_name: literal) ? $( #[ $doc: meta ] ) ? fn $( $function : tt ) * ) => (
1212 #[ link( name = $library, kind = "raw-dylib" , modifiers = "+verbatim" , import_name_type = "undecorated" ) ]
1313 extern $abi {
14- $( #[ $( $ doc) * ] ) *
14+ $( #[ $doc] ) ?
1515 $( #[ link_name=$link_name] ) ?
16- pub fn $name ( $ ( $arg : $argty ) , * ) $ ( ->$ret ) ? ;
16+ pub fn $( $function ) * ;
1717 }
1818 )
1919}
@@ -22,12 +22,12 @@ macro_rules! link {
2222#[ macro_export]
2323#[ doc( hidden) ]
2424macro_rules! link {
25- ( $library: literal $abi: literal $( $link_name: literal) ? $( #[ $( $ doc: tt ) * ] ) * fn $name : ident ( $ ( $arg : ident : $argty : ty ) , * ) $ ( ->$ret : ty ) ? ) => (
25+ ( $library: literal $abi: literal $( $link_name: literal) ? $( #[ $doc: meta ] ) ? fn $( $function : tt ) * ) => (
2626 #[ link( name = $library, kind = "raw-dylib" , modifiers = "+verbatim" ) ]
2727 extern "system" {
28- $( #[ $( $ doc) * ] ) *
28+ $( #[ $doc] ) ?
2929 $( #[ link_name=$link_name] ) ?
30- pub fn $name ( $ ( $arg : $argty ) , * ) $ ( ->$ret ) ? ;
30+ pub fn $( $function ) * ;
3131 }
3232 )
3333}
@@ -36,12 +36,12 @@ macro_rules! link {
3636#[ macro_export]
3737#[ doc( hidden) ]
3838macro_rules! link {
39- ( $library: literal $abi: literal $( $link_name: literal) ? $( #[ $( $ doc: tt ) * ] ) * fn $name : ident ( $ ( $arg : ident : $argty : ty ) , * ) $ ( ->$ret : ty ) ? ) => (
39+ ( $library: literal $abi: literal $( $link_name: literal) ? $( #[ $doc: meta ] ) ? fn $( $function : tt ) * ) => (
4040 #[ link( name = "windows.0.48.0" ) ]
4141 extern $abi {
42- $( #[ $( $ doc) * ] ) *
42+ $( #[ $doc] ) ?
4343 $( #[ link_name=$link_name] ) ?
44- pub fn $name ( $ ( $arg : $argty ) , * ) $ ( ->$ret ) ? ;
44+ pub fn $( $function ) * ;
4545 }
4646 )
4747}
@@ -50,10 +50,10 @@ macro_rules! link {
5050#[ macro_export]
5151#[ doc( hidden) ]
5252macro_rules! link {
53- ( $library: literal $abi: literal $( $link_name: literal) ? $( #[ $( $ doc: tt ) * ] ) * fn $name : ident ( $ ( $arg : ident : $argty : ty ) , * ) $ ( ->$ret : ty ) ? ) => (
53+ ( $library: literal $abi: literal $( $link_name: literal) ? $( #[ $doc: meta ] ) ? fn $( $function : tt ) * ) => (
5454 extern $abi {
55- $( #[ $( $ doc) * ] ) *
56- pub fn $name ( $ ( $arg : $argty ) , * ) $ ( ->$ret ) ? ;
55+ $( #[ $doc] ) ?
56+ pub fn $( $function ) * ;
5757 }
5858 )
5959}
0 commit comments