1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-27 18:24:27 +01:00

Replace all hard-coded '\n' with UNITY_PRINT_EOL macro in fixture

Delete the { ;} braces and semicolon from UNITY_PRINT_EOL to give it expected
  behavior: 1) requires a semicolon 2) works in one-liner if-else statements
If you need "\r\n" for EOL, define as the following to get the same behavior:
  do{UNITY_OUTPUT_CHAR('\r'); UNITY_OUTPUT_CHAR('\n');}while(0)
This commit is contained in:
jsalling
2015-11-23 17:09:30 -06:00
parent 5fc2b092d3
commit d4353166d2
2 changed files with 6 additions and 6 deletions

View File

@@ -292,7 +292,7 @@ extern int UNITY_OUTPUT_CHAR(int);
#endif
#ifndef UNITY_PRINT_EOL
#define UNITY_PRINT_EOL { UNITY_OUTPUT_CHAR('\n'); }
#define UNITY_PRINT_EOL UNITY_OUTPUT_CHAR('\n')
#endif
#ifndef UNITY_OUTPUT_START