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