MCPcopy Create free account
hub / github.com/DaveGamble/cJSON / UnityPrintNumber

Function UnityPrintNumber

tests/unity/src/unity.c:176–187  ·  view source on GitHub ↗

-----------------------------------------------*/

Source from the content-addressed store, hash-verified

174
175/*-----------------------------------------------*/
176void UnityPrintNumber(const UNITY_INT number_to_print)
177{
178 UNITY_UINT number = (UNITY_UINT)number_to_print;
179
180 if (number_to_print < 0)
181 {
182 /* A negative number, including MIN negative */
183 UNITY_OUTPUT_CHAR('-');
184 number = (UNITY_UINT)(-number_to_print);
185 }
186 UnityPrintNumberUnsigned(number);
187}
188
189/*-----------------------------------------------
190 * basically do an itoa using as little ram as possible */

Callers 3

UnityPrintNumberByStyleFunction · 0.85
UnityTestResultsBeginFunction · 0.85
UnityEndFunction · 0.85

Calls 1

UnityPrintNumberUnsignedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…