Debian Codegraph @

debian/missing-sources/glam-0.22.0/src/macros.rs

raw symbols SCIP
1 #[cfg(any(
2 all(debug_assertions, feature = "debug-glam-assert"),
3 feature = "glam-assert"
4 ))]
5 macro_rules! glam_assert {
6 ($($arg:tt)*) => ( assert!($($arg)*); )
7 }
8 #[cfg(not(any(
9 all(debug_assertions, feature = "debug-glam-assert"),
10 feature = "glam-assert"
11 )))]
12 macro_rules! glam_assert {
13 ($($arg:tt)*) => {};
14 }
15
16 macro_rules! const_assert {
17 ($x:expr $(,)?) => {
18 #[allow(unknown_lints, clippy::eq_op)]
19 const _: () = assert!($x);
20 };
21 }
22
23 macro_rules! const_assert_eq {
24 ($x:expr, $y:expr $(,)?) => {
25 const_assert!($x == $y);
26 };
27 }