mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-07-29 23:22:49 +08:00
Reduce stack usage by removing unnecessary call from group runner in Fixture
Defining a group_runner which calls group_runner_runAll() is redundant
This commit is contained in:
@ -55,13 +55,8 @@ int UnityMain(int argc, const char* argv[], void (*runAllTests)(void));
|
|||||||
|
|
||||||
//This goes at the bottom of each test file or in a separate c file
|
//This goes at the bottom of each test file or in a separate c file
|
||||||
#define TEST_GROUP_RUNNER(group)\
|
#define TEST_GROUP_RUNNER(group)\
|
||||||
void TEST_##group##_GROUP_RUNNER_runAll(void);\
|
|
||||||
void TEST_##group##_GROUP_RUNNER(void);\
|
void TEST_##group##_GROUP_RUNNER(void);\
|
||||||
void TEST_##group##_GROUP_RUNNER(void)\
|
void TEST_##group##_GROUP_RUNNER(void)
|
||||||
{\
|
|
||||||
TEST_##group##_GROUP_RUNNER_runAll();\
|
|
||||||
}\
|
|
||||||
void TEST_##group##_GROUP_RUNNER_runAll(void)
|
|
||||||
|
|
||||||
//Call this from main
|
//Call this from main
|
||||||
#define RUN_TEST_GROUP(group)\
|
#define RUN_TEST_GROUP(group)\
|
||||||
|
Reference in New Issue
Block a user