From 01e8d8f5d56a5619aa3bc3bba745667382a9d257 Mon Sep 17 00:00:00 2001 From: Jason Travis Smith Date: Mon, 24 Jun 2019 22:35:07 -0400 Subject: [PATCH] testing macro --- src/macros.rs | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index e359760..03ec925 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -4,22 +4,16 @@ 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),+, )|* } } =>