mirror of https://github.com/ArduPilot/ardupilot
AP_Math: add waf argument to get consistent builds
This commit is contained in:
parent
c7605e11bd
commit
ddf62cc060
|
@ -171,8 +171,8 @@ T constrain_value(const T amt, const T low, const T high);
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T constrain_value_line(const T amt, const T low, const T high, uint32_t line);
|
T constrain_value_line(const T amt, const T low, const T high, uint32_t line);
|
||||||
|
|
||||||
#define constrain_float(amt, low, high) constrain_value_line(float(amt), float(low), float(high), uint32_t(__LINE__))
|
#define constrain_float(amt, low, high) constrain_value_line(float(amt), float(low), float(high), uint32_t(__AP_LINE__))
|
||||||
#define constrain_ftype(amt, low, high) constrain_value_line(ftype(amt), ftype(low), ftype(high), uint32_t(__LINE__))
|
#define constrain_ftype(amt, low, high) constrain_value_line(ftype(amt), ftype(low), ftype(high), uint32_t(__AP_LINE__))
|
||||||
|
|
||||||
inline int16_t constrain_int16(const int16_t amt, const int16_t low, const int16_t high)
|
inline int16_t constrain_int16(const int16_t amt, const int16_t low, const int16_t high)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue