summaryrefslogtreecommitdiff
path: root/ecs/src/system/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/system/util.rs')
-rw-r--r--ecs/src/system/util.rs15
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");
+ }
}
- }
- })
+ });
+ }
};
}