diff --git a/src/macros.rs b/src/macros.rs index 96c1bbf..e359760 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -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),+ + } )|* } } =>