include/SDL_test_log.h
changeset 8820 0e935d5b193a
parent 8149 681eb46b8ac4
child 9619 b94b6d0bff0f
equal deleted inserted replaced
8819:728adb496260 8820:0e935d5b193a
    45 /**
    45 /**
    46  * \brief Prints given message with a timestamp in the TEST category and INFO priority.
    46  * \brief Prints given message with a timestamp in the TEST category and INFO priority.
    47  *
    47  *
    48  * \param fmt Message to be logged
    48  * \param fmt Message to be logged
    49  */
    49  */
    50 void SDLTest_Log(const char *fmt, ...);
    50 void SDLTest_Log(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
    51 
    51 
    52 /**
    52 /**
    53  * \brief Prints given message with a timestamp in the TEST category and the ERROR priority.
    53  * \brief Prints given message with a timestamp in the TEST category and the ERROR priority.
    54  *
    54  *
    55  * \param fmt Message to be logged
    55  * \param fmt Message to be logged
    56  */
    56  */
    57 void SDLTest_LogError(const char *fmt, ...);
    57 void SDLTest_LogError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
    58 
    58 
    59 /* Ends C function definitions when using C++ */
    59 /* Ends C function definitions when using C++ */
    60 #ifdef __cplusplus
    60 #ifdef __cplusplus
    61 }
    61 }
    62 #endif
    62 #endif