mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
- Protect against people not defining UNITY_USE_COMMAND)LINES_ARGS but enabling cmd_lines in test runner generator. (Cherry-pick PR 739)
- Fix UNITY_NORETURN usage (Cherry-pick PR 742) - Other standards and formatting tweaks.
This commit is contained in:
@@ -69,8 +69,8 @@ static const UNITY_DOUBLE d_zero = 0.0;
|
||||
#define SPY_BUFFER_MAX 40
|
||||
static char putcharSpyBuffer[SPY_BUFFER_MAX];
|
||||
#endif
|
||||
static int indexSpyBuffer;
|
||||
static int putcharSpyEnabled;
|
||||
static UNITY_COUNTER_TYPE indexSpyBuffer;
|
||||
static UNITY_COUNTER_TYPE putcharSpyEnabled;
|
||||
|
||||
void startPutcharSpy(void)
|
||||
{
|
||||
@@ -108,8 +108,8 @@ void putcharSpy(int c)
|
||||
}
|
||||
|
||||
/* This is for counting the calls to the flushSpy */
|
||||
static int flushSpyEnabled;
|
||||
static int flushSpyCalls = 0;
|
||||
static UNITY_COUNTER_TYPE flushSpyEnabled;
|
||||
static UNITY_COUNTER_TYPE flushSpyCalls = 0;
|
||||
|
||||
void startFlushSpy(void)
|
||||
{
|
||||
@@ -123,7 +123,7 @@ void endFlushSpy(void)
|
||||
flushSpyEnabled = 0;
|
||||
}
|
||||
|
||||
int getFlushSpyCalls(void)
|
||||
UNITY_COUNTER_TYPE getFlushSpyCalls(void)
|
||||
{
|
||||
return flushSpyCalls;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user