diff --git a/src/debug.rs b/src/debug.rs index 4d6002f1..eb1cc3fa 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -54,7 +54,7 @@ macro_rules! nih_debug_assert_eq { nih_log!(concat!("Debug assertion failed: ", stringify!($left), " != ", stringify!($right))); } ); - (left:expr, $right:expr, $format:expr $(, $($args:tt)*)?) => ( + ($left:expr, $right:expr, $format:expr $(, $($args:tt)*)?) => ( if cfg!(debug_assertions) && $left != $right { nih_log!(concat!("Debug assertion failed: ", stringify!($left), " != ", stringify!($right), ", ", $format), $($($args)*)?); } @@ -70,7 +70,7 @@ macro_rules! nih_debug_assert_ne { nih_log!(concat!("Debug assertion failed: ", stringify!($left), " == ", stringify!($right))); } ); - (left:expr, $right:expr, $format:expr $(, $($args:tt)*)?) => ( + ($left:expr, $right:expr, $format:expr $(, $($args:tt)*)?) => ( if cfg!(debug_assertions) && $left == $right { nih_log!(concat!("Debug assertion failed: ", stringify!($left), " == ", stringify!($right), ", ", $format), $($($args)*)?); }