mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-30 19:54:26 +01:00
Remove opaque typedef from UnityFixture struct, as done in core Unity
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
#include "unity_fixture.h"
|
#include "unity_fixture.h"
|
||||||
#include "unity_internals.h"
|
#include "unity_internals.h"
|
||||||
|
|
||||||
UNITY_FIXTURE_T UnityFixture;
|
struct _UnityFixture UnityFixture;
|
||||||
|
|
||||||
//If you decide to use the function pointer approach.
|
//If you decide to use the function pointer approach.
|
||||||
//Build with -D UNITY_OUTPUT_CHAR=outputChar and include <stdio.h>
|
//Build with -D UNITY_OUTPUT_CHAR=outputChar and include <stdio.h>
|
||||||
|
|||||||
@@ -8,13 +8,13 @@
|
|||||||
#ifndef UNITY_FIXTURE_INTERNALS_H_
|
#ifndef UNITY_FIXTURE_INTERNALS_H_
|
||||||
#define UNITY_FIXTURE_INTERNALS_H_
|
#define UNITY_FIXTURE_INTERNALS_H_
|
||||||
|
|
||||||
typedef struct _UNITY_FIXTURE_T
|
struct _UnityFixture
|
||||||
{
|
{
|
||||||
int Verbose;
|
int Verbose;
|
||||||
unsigned int RepeatCount;
|
unsigned int RepeatCount;
|
||||||
const char* NameFilter;
|
const char* NameFilter;
|
||||||
const char* GroupFilter;
|
const char* GroupFilter;
|
||||||
} UNITY_FIXTURE_T;
|
};
|
||||||
|
|
||||||
typedef void unityfunction(void);
|
typedef void unityfunction(void);
|
||||||
void UnityTestRunner(unityfunction* setup,
|
void UnityTestRunner(unityfunction* setup,
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
extern UNITY_FIXTURE_T UnityFixture;
|
extern struct _UnityFixture UnityFixture;
|
||||||
|
|
||||||
TEST_GROUP(UnityFixture);
|
TEST_GROUP(UnityFixture);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user