#[cfg(feature = "user")]
#[macro_export]
macro_rules! seq_ids {
() => {};
($val:expr,) => {};
(
$( #[$comment:meta] )*
$name:ident = $val:expr;
$( $others:tt )*
) => {
$( #[$comment] )*
pub const $name: u16 = $val;
seq_ids!($val + 1, $( $others )*);
};
(
$next_val:expr,
$( #[$comment:meta] )*
$name:ident = $val:expr;
$( $others:tt )*
) => {
$( #[$comment] )*
pub const $name: u16 = $val;
seq_ids!($val + 1, $( $others )*);
};
(
$next_val:expr,
$( #[$comment:meta] )*
$name:ident
$( $others:tt )*
) => {
$( #[$comment] )*
pub const $name: u16 = $next_val;
seq_ids!($next_val + 1, $( $others )*);
};
}