1
0
Fork 0

Fix typo in debug assert macros

This commit is contained in:
Robbert van der Helm 2022-03-20 12:44:29 +01:00
parent a6f4202ac5
commit 8371f767ce

View file

@ -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)*)?);
}