2022-10-06 02:44:38 -05:00
|
|
|
#[macro_export]
|
|
|
|
macro_rules! expr {
|
|
|
|
() => {
|
|
|
|
1
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! stmt {
|
|
|
|
() => {
|
|
|
|
let _x = ();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! ty {
|
|
|
|
() => { &'static str };
|
|
|
|
}
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! pat {
|
|
|
|
() => {
|
|
|
|
_
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! item {
|
|
|
|
() => {
|
|
|
|
const ITEM: usize = 1;
|
|
|
|
};
|
|
|
|
}
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! binop {
|
|
|
|
($t:tt) => {
|
|
|
|
$t + $t
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! attr {
|
|
|
|
($i:item) => {
|
|
|
|
#[repr(C)]
|
|
|
|
$i
|
|
|
|
};
|
|
|
|
}
|