Adjusting the attribute location in c_structs.
This commit is contained in:
parent
6cb2888281
commit
f0b6e71591
@ -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),+,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user