macro_rules! check_arch_independent_layout {
{} => { ... };
{
$type_name:ident {
$( $($field:ident).+ ),*
$(,)?
}
$($token:tt)*
} => { ... };
}Expand description
Ensure a uapi type has the same layout in 32 and 64 bits.
Usage:
check_arch_independent_layout! {
UapiType {
field1,
field2,
...
}
}