Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

#define RT_CLAMP ( Value,
Min,
Max   )     ( (Value) > (Max) ? (Max) : (Value) < (Min) ? (Min) : (Value) )

Clamps the value to minimum and maximum values.

Returns:
The clamped value.
Parameters:
Value The value to check.
Min Minimum value.
Max Maximum value.

Definition at line 1186 of file cdefs.h.

Referenced by settings::MachineConfigFile::readHardware().


Generated by  Doxygen 1.6.0   Back to index