1
0
Fork 0

nih_debug_assert_neq -> nih_debug_assert_ne

This commit is contained in:
Robbert van der Helm 2022-02-02 22:29:14 +01:00
parent da291175d1
commit 1c80744989

View file

@ -77,10 +77,10 @@ macro_rules! nih_debug_assert_eq {
);
}
/// A `debug_assert_neq!()` analogue that prints the error with line number information instead of
/// A `debug_assert_ne!()` analogue that prints the error with line number information instead of
/// panicking.
#[macro_export]
macro_rules! nih_debug_assert_neq {
macro_rules! nih_debug_assert_ne {
($left:expr, $right:expr $(,)?) => (
if cfg!(debug_assertions) && $left == $right {
nih_log!(concat!("Debug assertion failed: ", stringify!($left), " == ", stringify!($right)));