Skip to content

Commit 51d2db9

Browse files
authored
Merge pull request #815 from JamesB192/master
πŸ›πŸ§ Try build Unity w/ -DUNITY_EXCLUDE_FLOAT_PRINT
2 parents d89dafa + 747c2ee commit 51d2db9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

β€Žsrc/unity.cβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,7 @@ void UnityAssertFloatsWithin(const UNITY_FLOAT delta,
11101110
}
11111111
}
11121112

1113+
#ifndef UNITY_EXCLUDE_FLOAT_PRINT
11131114
/*-----------------------------------------------*/
11141115
void UnityAssertFloatsNotWithin(const UNITY_FLOAT delta,
11151116
const UNITY_FLOAT expected,
@@ -1163,6 +1164,7 @@ void UnityAssertGreaterOrLessFloat(const UNITY_FLOAT threshold,
11631164
UNITY_FAIL_AND_BAIL;
11641165
}
11651166
}
1167+
#endif /* ! UNITY_EXCLUDE_FLOAT_PRINT */
11661168

11671169
/*-----------------------------------------------*/
11681170
void UnityAssertFloatSpecial(const UNITY_FLOAT actual,
@@ -1337,6 +1339,7 @@ void UnityAssertDoublesWithin(const UNITY_DOUBLE delta,
13371339
}
13381340
}
13391341

1342+
#ifndef UNITY_EXCLUDE_FLOAT_PRINT
13401343
/*-----------------------------------------------*/
13411344
void UnityAssertDoublesNotWithin(const UNITY_DOUBLE delta,
13421345
const UNITY_DOUBLE expected,
@@ -1390,6 +1393,7 @@ void UnityAssertGreaterOrLessDouble(const UNITY_DOUBLE threshold,
13901393
UNITY_FAIL_AND_BAIL;
13911394
}
13921395
}
1396+
#endif /* ! UNITY_EXCLUDE_FLOAT_PRINT */
13931397

13941398
/*-----------------------------------------------*/
13951399
void UnityAssertDoubleSpecial(const UNITY_DOUBLE actual,

0 commit comments

Comments
Β (0)