1.1 --- a/include/SDL_test_assert.h Sat Dec 15 00:30:17 2012 +0000
1.2 +++ b/include/SDL_test_assert.h Fri Dec 14 23:05:34 2012 -0800
1.3 @@ -60,17 +60,24 @@
1.4 * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0).
1.5 * \param assertDescription Message to log with the assert describing it.
1.6 */
1.7 -void SDLTest_Assert(int assertCondition, char *assertDescription);
1.8 +void SDLTest_Assert(int assertCondition, char *assertDescription, ...);
1.9
1.10 /**
1.11 - * \brief Assert for test cases that logs but does not break execution flow on failures.
1.12 + * \brief Assert for test cases that logs but does not break execution flow on failures. Updates assertion counters.
1.13 *
1.14 * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0).
1.15 * \param assertDescription Message to log with the assert describing it.
1.16 *
1.17 - * \returns Returns the assertCondition so it can be used to externall to break execution flow if desired.
1.18 + * \returns Returns the assertCondition so it can be used to externally to break execution flow if desired.
1.19 */
1.20 -int SDLTest_AssertCheck(int assertCondition, char *assertDescription);
1.21 +int SDLTest_AssertCheck(int assertCondition, char *assertDescription, ...);
1.22 +
1.23 +/**
1.24 + * \brief Explicitely pass without checking an assertion condition. Updates assertion counter.
1.25 + *
1.26 + * \param assertDescription Message to log with the assert describing it.
1.27 + */
1.28 +void SDLTest_AssertPass(char *assertDescription, ...);
1.29
1.30 /**
1.31 * \brief Resets the assert summary counters to zero.