Condense all longjmp calls into TEST_ABORT()

The setjmp calls are all in TEST_PROTECT() already
This commit is contained in:
jsalling
2017-01-14 10:41:03 -06:00
parent 6695e9e975
commit 5449f1e4d1
3 changed files with 4 additions and 4 deletions

View File

@ -536,7 +536,7 @@ extern const char UnityStrErr64[];
#define TEST_PROTECT() (setjmp(Unity.AbortFrame) == 0)
#define TEST_ABORT() {longjmp(Unity.AbortFrame, 1);}
#define TEST_ABORT() longjmp(Unity.AbortFrame, 1)
/* This tricky series of macros gives us an optional line argument to treat it as RUN_TEST(func, num=__LINE__) */
#ifndef RUN_TEST