From e3132cdddd779cb5a813887b2d0d7facb7f3f90a Mon Sep 17 00:00:00 2001 From: mvandervoord Date: Thu, 5 Dec 2019 13:51:55 -0500 Subject: [PATCH] Change the way we ignore the default runner. --- src/unity.c | 2 +- src/unity_internals.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unity.c b/src/unity.c index 7b20033..55af324 100644 --- a/src/unity.c +++ b/src/unity.c @@ -1801,7 +1801,7 @@ void UnityMessage(const char* msg, const UNITY_LINE_TYPE line) /*-----------------------------------------------*/ /* If we have not defined our own test runner, then include our default test runner to make life easier */ -#ifndef RUN_TEST +#ifdef UNITY_SKIP_DEFAULT_RUNNER void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int FuncLineNum) { Unity.CurrentTestName = FuncName; diff --git a/src/unity_internals.h b/src/unity_internals.h index 9f610a2..fae4018 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -481,6 +481,7 @@ void UnitySetTestFile(const char* filename); void UnityConcludeTest(void); #ifndef RUN_TEST +#define UNITY_SKIP_DEFAULT_RUNNER void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int FuncLineNum); #endif