src/test/SDL_test_assert.c
changeset 8820 0e935d5b193a
parent 8149 681eb46b8ac4
child 8830 2d74f0c59cc7
     1.1 --- a/src/test/SDL_test_assert.c	Wed Jun 04 10:56:43 2014 -0700
     1.2 +++ b/src/test/SDL_test_assert.c	Wed Jun 04 10:56:56 2014 -0700
     1.3 @@ -44,7 +44,7 @@
     1.4  /*
     1.5   *  Assert that logs and break execution flow on failures (i.e. for harness errors).
     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, ...)
     1.9  {
    1.10          va_list list;
    1.11      char logMessage[SDLTEST_MAX_LOGMESSAGE_LENGTH];
    1.12 @@ -62,7 +62,7 @@
    1.13  /*
    1.14   * Assert that logs but does not break execution flow on failures (i.e. for test cases).
    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, ...)
    1.18  {
    1.19      va_list list;
    1.20      char logMessage[SDLTEST_MAX_LOGMESSAGE_LENGTH];
    1.21 @@ -91,7 +91,7 @@
    1.22  /*
    1.23   * Explicitly passing Assert that logs (i.e. for test cases).
    1.24   */
    1.25 -void SDLTest_AssertPass(const char *assertDescription, ...)
    1.26 +void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...)
    1.27  {
    1.28      va_list list;
    1.29      char logMessage[SDLTEST_MAX_LOGMESSAGE_LENGTH];