AP_Math: add waf argument to get consistent builds

This commit is contained in:
Peter Barker 2023-02-15 22:20:52 +11:00 committed by Peter Barker
parent c7605e11bd
commit ddf62cc060
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{ {