macro debug_assert_eq($lhs, $rhs) { ... }

Panics if lhs and rhs are not equal when compiled in debug mode. Otherwise, does nothing.