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
|
$cname: ident
|
||||||
{
|
{
|
||||||
$(#[$attr: meta])*
|
$($(#[$attr: meta])* $name: ident: $type: ty);*;
|
||||||
$($name: ident: $type: ty);*;
|
|
||||||
}
|
}
|
||||||
} =>
|
} =>
|
||||||
{
|
{
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct $cname
|
pub struct $cname
|
||||||
{
|
{
|
||||||
$(#[$attr])*
|
$($(#[$attr])* pub $name: $type),+,
|
||||||
$(pub $name: $type),+,
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user