mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-08-06 13:50:49 +08:00
Condense all longjmp calls into TEST_ABORT()
The setjmp calls are all in TEST_PROTECT() already
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user