MCPcopy Index your code
hub / github.com/ThrowTheSwitch/Unity / UnityPrintNumber

Function UnityPrintNumber

src/unity.c:239–250  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

237
238/*-----------------------------------------------*/
239void UnityPrintNumber(const UNITY_INT number_to_print)
240{
241 UNITY_UINT number = (UNITY_UINT)number_to_print;
242
243 if (number_to_print < 0)
244 {
245 /* A negative number, including MIN negative */
246 UNITY_OUTPUT_CHAR('-');
247 number = (~number) + 1;
248 }
249 UnityPrintNumberUnsigned(number);
250}
251
252/*-----------------------------------------------
253 * basically do an itoa using as little ram as possible */

Callers 4

UnityPrintNumberByStyleFunction · 0.85
UnityTestResultsBeginFunction · 0.85
unity.cFile · 0.85
UnityEndFunction · 0.85

Calls 1

UnityPrintNumberUnsignedFunction · 0.85

Tested by

no test coverage detected