Added meta data, attributes, to C structure members.

This commit is contained in:
Myrddin Dundragon 2019-06-25 03:14:38 -04:00
parent ecb382c0c3
commit 6cb2888281

View File

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