1.1 --- a/include/SDL_test_assert.h Fri Nov 30 23:25:34 2012 -0800
1.2 +++ b/include/SDL_test_assert.h Sat Dec 01 14:48:30 2012 -0800
1.3 @@ -45,6 +45,16 @@
1.4 #endif
1.5
1.6 /**
1.7 + * \brief Fails the assert.
1.8 + */
1.9 +#define ASSERT_FAIL 0
1.10 +
1.11 +/**
1.12 + * \brief Passes the assert.
1.13 + */
1.14 +#define ASSERT_PASS 1
1.15 +
1.16 +/**
1.17 * \brief Assert that logs and break execution flow on failures.
1.18 *
1.19 * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0).
1.20 @@ -57,8 +67,10 @@
1.21 *
1.22 * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0).
1.23 * \param assertDescription Message to log with the assert describing it.
1.24 + *
1.25 + * \returns Returns the assertCondition so it can be used to externall to break execution flow if desired.
1.26 */
1.27 -void SDLTest_AssertCheck(int assertCondition, char *assertDescription);
1.28 +int SDLTest_AssertCheck(int assertCondition, char *assertDescription);
1.29
1.30 /**
1.31 * \brief Resets the assert summary counters to zero.