diff options
author | HampusM <hampus@hampusmat.com> | 2024-06-22 22:53:35 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-06-22 22:53:35 +0200 |
commit | 7af802e1dfcdbd4d863fec9a8f88229694926860 (patch) | |
tree | dcb6a5e811a65bbf794de31ffe68cd1ccb355c28 /ecs/src | |
parent | fec7e1a774cde71632a3032253017604b3e1ca14 (diff) |
fix(ecs): disable system param compatability checks by default
Diffstat (limited to 'ecs/src')
-rw-r--r-- | ecs/src/system/util.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ecs/src/system/util.rs b/ecs/src/system/util.rs index 9175911..54fff0e 100644 --- a/ecs/src/system/util.rs +++ b/ecs/src/system/util.rs @@ -1,12 +1,15 @@ 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"); + #[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"); + } } - } - }) + }); + } }; } |