提交 5fc2b092 编写于 作者: J jsalling

Move UNITY_PRINT_EOL to internals to allow access to it.

Unity fixture needs access to this macro to be consistent.
Add #ifndef wrapper for easier redefinition on systems that use "\r\n".
上级 c6dc96f3
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#define UNITY_IGNORE_AND_BAIL { Unity.CurrentTestIgnored = 1; longjmp(Unity.AbortFrame, 1); } #define UNITY_IGNORE_AND_BAIL { Unity.CurrentTestIgnored = 1; longjmp(Unity.AbortFrame, 1); }
/// return prematurely if we are already in failure or ignore state /// return prematurely if we are already in failure or ignore state
#define UNITY_SKIP_EXECUTION { if ((Unity.CurrentTestFailed != 0) || (Unity.CurrentTestIgnored != 0)) {return;} } #define UNITY_SKIP_EXECUTION { if ((Unity.CurrentTestFailed != 0) || (Unity.CurrentTestIgnored != 0)) {return;} }
#define UNITY_PRINT_EOL { UNITY_OUTPUT_CHAR('\n'); }
struct _Unity Unity; struct _Unity Unity;
......
...@@ -291,6 +291,10 @@ typedef UNITY_DOUBLE_TYPE _UD; ...@@ -291,6 +291,10 @@ typedef UNITY_DOUBLE_TYPE _UD;
extern int UNITY_OUTPUT_CHAR(int); extern int UNITY_OUTPUT_CHAR(int);
#endif #endif
#ifndef UNITY_PRINT_EOL
#define UNITY_PRINT_EOL { UNITY_OUTPUT_CHAR('\n'); }
#endif
#ifndef UNITY_OUTPUT_START #ifndef UNITY_OUTPUT_START
#define UNITY_OUTPUT_START() #define UNITY_OUTPUT_START()
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册