diff --git a/src/common/engine/namedef.h b/src/common/engine/namedef.h index 2571cb31525..948228cb916 100644 --- a/src/common/engine/namedef.h +++ b/src/common/engine/namedef.h @@ -139,6 +139,7 @@ xx(Max) xx(Min_Normal) xx(Min_Denormal) xx(Epsilon) +xx(Equal_Epsilon) xx(NaN) xx(Infinity) xx(Dig) diff --git a/src/common/scripting/core/types.cpp b/src/common/scripting/core/types.cpp index 693e84e2e89..078845d6d69 100644 --- a/src/common/scripting/core/types.cpp +++ b/src/common/scripting/core/types.cpp @@ -853,6 +853,7 @@ void PFloat::SetDoubleSymbols() { NAME_Min_Normal, DBL_MIN }, { NAME_Max, DBL_MAX }, { NAME_Epsilon, DBL_EPSILON }, + { NAME_Equal_Epsilon, EQUAL_EPSILON }, { NAME_NaN, std::numeric_limits::quiet_NaN() }, { NAME_Infinity, std::numeric_limits::infinity() }, { NAME_Min_Denormal, std::numeric_limits::denorm_min() } @@ -885,6 +886,7 @@ void PFloat::SetSingleSymbols() { NAME_Min_Normal, FLT_MIN }, { NAME_Max, FLT_MAX }, { NAME_Epsilon, FLT_EPSILON }, + { NAME_Equal_Epsilon, (float)EQUAL_EPSILON }, { NAME_NaN, std::numeric_limits::quiet_NaN() }, { NAME_Infinity, std::numeric_limits::infinity() }, { NAME_Min_Denormal, std::numeric_limits::denorm_min() }