blob: 54fff0e8b39a11fc2bd8c0b66574be72911b3c2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
macro_rules! check_params_are_compatible {
($excluded_index: tt, $param: ident, $cnt: tt) => {
#[cfg(feature = "system-param-compat-checks")]
{
seq!(N in 0..$cnt {
if N != $excluded_index {
if !$param::is_compatible::<TParam~N>() {
panic!("Atleast two parameters are incompatible");
}
}
});
}
};
}
pub(crate) use check_params_are_compatible;
|