You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
619 B
Rust
25 lines
619 B
Rust
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
//
|
|
// Copyright (c) 2019-2020 Andre Richter <andre.o.richter@gmail.com>
|
|
|
|
//! Fix for register-rs.
|
|
//!
|
|
//! Used temporarily until https://github.com/tock/tock/issues/1482 is resolved.
|
|
|
|
#![no_std]
|
|
|
|
/// A temporary overwrite for tock's register_structs! so that it does not emit `#[test]` attributes.
|
|
#[macro_export]
|
|
macro_rules! register_structs {
|
|
{
|
|
$(
|
|
$(#[$attr:meta])*
|
|
$name:ident {
|
|
$( $fields:tt )*
|
|
}
|
|
),*
|
|
} => {
|
|
$( register_fields!(@root $(#[$attr])* $name { $($fields)* } ); )*
|
|
};
|
|
}
|