static void announceTestRun(unsigned int runNumber) { UnityPrint("Unity test run "); UnityPrintNumber(runNumber+1); UnityPrint(" of "); UnityPrintNumber(UnityFixture.RepeatCount); UNITY_OUTPUT_CHAR('\n'); }
/* DX_PATCH: "static" modifier required to avoid GCC warning: no previous prototype for... */ static void announceTestRun(unsigned int runNumber, struct _Unity * const unity_p) { UnityPrint("Unity test run ", unity_p); UnityPrintNumber(runNumber+1, unity_p); UnityPrint(" of ", unity_p); UnityPrintNumber(unity_p->RepeatCount, unity_p); UNITY_OUTPUT_CHAR('\n'); }
//----------------------------------------------- void UnityPrintNumberByStyle(const _U_SINT number, const UNITY_DISPLAY_STYLE_T style, struct _Unity * const unity_p) { if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT) { UnityPrintNumber(number, unity_p); } else if ((style & UNITY_DISPLAY_RANGE_UINT) == UNITY_DISPLAY_RANGE_UINT) { // compiler-generic print formatting masks static const _U_UINT UnitySizeMask[] = { 255u // 0xFF ,65535u // 0xFFFF ,4294967295u // 0xFFFFFFFF #ifdef UNITY_SUPPORT_64 ,0xFFFFFFFFFFFFFFFF #endif }; const _U_UINT *maskPtr = UnitySizeMask; _U_UINT s = (_U_UINT)style & (_U_UINT)0x0F; while (s >>= 1) { ++maskPtr; } UnityPrintNumberUnsigned( (_U_UINT)number & *maskPtr , unity_p); } else {