dtt

Macro dtt_max

Source
macro_rules! dtt_max {
    ($x:expr $(, $y:expr)*) => { ... };
}
Expand description

Returns the maximum of the given values.

§Arguments

  • $x:expr: The first value to be compared.
  • $(, $y:expr)*: Additional values to be compared.

§Example

use dtt::dtt_max;

assert_eq!(dtt_max!(10, 20, 30), 30);