Adjusting the attribute location in c_structs.

This commit is contained in:
Myrddin Dundragon 2019-06-25 03:17:05 -04:00
parent 6cb2888281
commit f0b6e71591

View File

@ -5,16 +5,14 @@ macro_rules! c_struct
{
$cname: ident
{
$(#[$attr: meta])*
$($name: ident: $type: ty);*;
$($(#[$attr: meta])* $name: ident: $type: ty);*;
}
} =>
{
#[repr(C)]
pub struct $cname
{
$(#[$attr])*
$(pub $name: $type),+,
$($(#[$attr])* pub $name: $type),+,
}
};
}