mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
16 lines
323 B
Rust
16 lines
323 B
Rust
#[macro_export]
|
|
macro_rules! creator {
|
|
(struct $name1:ident; enum $name2:ident; enum $name3:ident;) => {
|
|
#[derive(Debug)]
|
|
pub struct $name1;
|
|
|
|
#[derive(Debug)]
|
|
#[repr(u32)]
|
|
pub enum $name2 { A }
|
|
|
|
#[derive(Debug)]
|
|
#[repr(u16)]
|
|
pub enum $name3 { A }
|
|
}
|
|
}
|