1.1 --- a/include/SDL_test_assert.h Wed Jun 04 10:56:43 2014 -0700
1.2 +++ b/include/SDL_test_assert.h Wed Jun 04 10:56:56 2014 -0700
1.3 @@ -58,7 +58,7 @@
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, const char *assertDescription, ...);
1.8 +void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2);
1.9
1.10 /**
1.11 * \brief Assert for test cases that logs but does not break execution flow on failures. Updates assertion counters.
1.12 @@ -68,14 +68,14 @@
1.13 *
1.14 * \returns Returns the assertCondition so it can be used to externally to break execution flow if desired.
1.15 */
1.16 -int SDLTest_AssertCheck(int assertCondition, const char *assertDescription, ...);
1.17 +int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2);
1.18
1.19 /**
1.20 * \brief Explicitely pass without checking an assertion condition. Updates assertion counter.
1.21 *
1.22 * \param assertDescription Message to log with the assert describing it.
1.23 */
1.24 -void SDLTest_AssertPass(const char *assertDescription, ...);
1.25 +void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(1);
1.26
1.27 /**
1.28 * \brief Resets the assert summary counters to zero.