MakeMinMax procedure
Ensures that the i1 argument is the smaller of the two Integer values.
Declaration
procedure MakeMinMax(var i1: Integer; var i2: Integer)Arguments
i1 | Integer value compared (and potentially updated) in the routine. |
i2 | Integer value compared (and potentially updated) in the routine. |
Description
MakeMinMax swaps the values in i1 and i2 variable parameters when
i1 is larger than i2. No actions are performed in the routine if i1 is smaller
than i2, or the arguments have the same value.
Added in LazUtils version 3.0.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
