testing macro
This commit is contained in:
parent
d471549411
commit
01e8d8f5d5
@ -4,22 +4,16 @@ macro_rules! external_library
|
|||||||
{
|
{
|
||||||
$name: ident : $link: expr =>
|
$name: ident : $link: expr =>
|
||||||
{
|
{
|
||||||
$(statics
|
$(statics:
|
||||||
{
|
$($sname: ident: $stype: ty);+,
|
||||||
$($sname: ident: $stype: ty);+
|
|
||||||
}
|
|
||||||
)|*
|
)|*
|
||||||
|
|
||||||
$(functions
|
$(functions:
|
||||||
{
|
$($fname: ident($($farg: ident : $fargt: ty),*) -> $fret:ty);+,
|
||||||
$($fname: ident($($farg: ident : $fargt: ty),*) -> $fret:ty);+
|
|
||||||
}
|
|
||||||
)|*
|
)|*
|
||||||
|
|
||||||
$(varargs:
|
$(varargs:
|
||||||
{
|
$($vname: ident($($vargs: ty),+) -> $vret: ty),+,
|
||||||
$($vname: ident($($vargs: ty),+) -> $vret: ty),+
|
|
||||||
}
|
|
||||||
)|*
|
)|*
|
||||||
}
|
}
|
||||||
} =>
|
} =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user