blob: 9d04f1d2641af5755e93dd07f8d5090d30360806 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
macro_rules! check_params_are_compatible {
($excluded_index: tt, $param: ident, $cnt: tt) => {
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;
|