macro_rules! hsh_assert {
    ($($arg:tt)*) => { ... };
}
Expand description

This macro asserts that the given condition is true. If the condition is false, the macro panics with the message “Assertion failed!”.

Example

extern crate hsh;
use hsh::{ hsh_assert };

hsh_assert!(1 == 1);  // This will not panic
hsh_assert!(1 == 2);  // This will panic