[−][src]Macro chek::debug_almost_equal
Same as chek::almost_equal!
in debug builds or release builds where the -C debug-assertions
was provided to the compiler. For all other builds,
vanishes without a trace.
Optionally may take an additional message to display on failure, which is formatted using standard format syntax.
Example
// These are compiled to nothing if debug_assertions are off! chek::debug_almost_equal!(1.0f32, 1.0f32 + std::f32::EPSILON); chek::debug_almost_equal!(3.0, 3.000005f32, "Example message");