From 18c4e9376778a007ed71d1aba75d37d886ad0023 Mon Sep 17 00:00:00 2001 From: James Browning Date: Wed, 12 Nov 2025 04:48:49 -0800 Subject: [PATCH] Try build Unity w/ -UUNITY_EXCLUDE_FLOAT_PRINT --- src/unity.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/unity.c b/src/unity.c index 9e8b3a1..e031ebb 100644 --- a/src/unity.c +++ b/src/unity.c @@ -1110,6 +1110,7 @@ void UnityAssertFloatsWithin(const UNITY_FLOAT delta, } } +#ifndef UNITY_EXCLUDE_FLOAT_PRINT /*-----------------------------------------------*/ void UnityAssertFloatsNotWithin(const UNITY_FLOAT delta, const UNITY_FLOAT expected, @@ -1163,6 +1164,7 @@ void UnityAssertGreaterOrLessFloat(const UNITY_FLOAT threshold, UNITY_FAIL_AND_BAIL; } } +#endif // UNITY_EXCLUDE_FLOAT_PRINT /*-----------------------------------------------*/ void UnityAssertFloatSpecial(const UNITY_FLOAT actual, @@ -1337,6 +1339,7 @@ void UnityAssertDoublesWithin(const UNITY_DOUBLE delta, } } +#ifndef UNITY_EXCLUDE_FLOAT_PRINT /*-----------------------------------------------*/ void UnityAssertDoublesNotWithin(const UNITY_DOUBLE delta, const UNITY_DOUBLE expected, @@ -1390,6 +1393,7 @@ void UnityAssertGreaterOrLessDouble(const UNITY_DOUBLE threshold, UNITY_FAIL_AND_BAIL; } } +#endif // UNITY_EXCLUDE_FLOAT_PRINT /*-----------------------------------------------*/ void UnityAssertDoubleSpecial(const UNITY_DOUBLE actual,