mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-19 21:38:30 +08:00
Merge pull request #32 from alejmrm/missing_defs4uf_ud
Fix missing #define when UNITY_EXCLUDE_FLOAT is used
This commit is contained in:
@ -32,12 +32,14 @@ const char* UnityStrInf = "Infinity";
|
|||||||
const char* UnityStrNegInf = "Negative Infinity";
|
const char* UnityStrNegInf = "Negative Infinity";
|
||||||
const char* UnityStrNaN = "NaN";
|
const char* UnityStrNaN = "NaN";
|
||||||
|
|
||||||
|
#ifndef UNITY_EXCLUDE_FLOAT
|
||||||
// Dividing by these constants produces +/- infinity.
|
// Dividing by these constants produces +/- infinity.
|
||||||
// The rationale is given in UnityAssertFloatIsInf's body.
|
// The rationale is given in UnityAssertFloatIsInf's body.
|
||||||
static const _UF f_zero = 0.0f;
|
static const _UF f_zero = 0.0f;
|
||||||
#ifndef UNITY_EXCLUDE_DOUBLE
|
#ifndef UNITY_EXCLUDE_DOUBLE
|
||||||
static const _UD d_zero = 0.0;
|
static const _UD d_zero = 0.0;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// compiler-generic print formatting masks
|
// compiler-generic print formatting masks
|
||||||
const _U_UINT UnitySizeMask[] =
|
const _U_UINT UnitySizeMask[] =
|
||||||
|
Reference in New Issue
Block a user