1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//! Macros that do run-time safety checks. These can be disabled, but this increases

//! the risk of unsafe behavior.

//!


/// `assert!` that is exists only if `"no-slow-safety-checks"` feature is not enabled.

#[macro_export]
macro_rules! rendy_slow_assert {
    ($($tt:tt)*) => {
        with_slow_safety_checks!(assert!($($tt)*));
    }
}

/// `assert_eq!` that is exists only if `"no-slow-safety-checks"` feature is not enabled.

#[macro_export]
macro_rules! rendy_slow_assert_eq {
    ($($tt:tt)*) => {
        with_slow_safety_checks!(assert_eq!($($tt)*));
    }
}

/// `assert_ne!` that is exists only if `"no-slow-safety-checks"` feature is not enabled.

#[macro_export]
macro_rules! rendy_slow_assert_ne {
    ($($tt:tt)*) => {
        with_slow_safety_checks!(assert_ne!($($tt)*));
    }
}