1.1 --- a/include/SDL_log.h Wed Jun 04 10:56:43 2014 -0700
1.2 +++ b/include/SDL_log.h Wed Jun 04 10:56:56 2014 -0700
1.3 @@ -137,44 +137,44 @@
1.4 /**
1.5 * \brief Log a message with SDL_LOG_CATEGORY_APPLICATION and SDL_LOG_PRIORITY_INFO
1.6 */
1.7 -extern DECLSPEC void SDLCALL SDL_Log(const char *fmt, ...);
1.8 +extern DECLSPEC void SDLCALL SDL_Log(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
1.9
1.10 /**
1.11 * \brief Log a message with SDL_LOG_PRIORITY_VERBOSE
1.12 */
1.13 -extern DECLSPEC void SDLCALL SDL_LogVerbose(int category, const char *fmt, ...);
1.14 +extern DECLSPEC void SDLCALL SDL_LogVerbose(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
1.15
1.16 /**
1.17 * \brief Log a message with SDL_LOG_PRIORITY_DEBUG
1.18 */
1.19 -extern DECLSPEC void SDLCALL SDL_LogDebug(int category, const char *fmt, ...);
1.20 +extern DECLSPEC void SDLCALL SDL_LogDebug(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
1.21
1.22 /**
1.23 * \brief Log a message with SDL_LOG_PRIORITY_INFO
1.24 */
1.25 -extern DECLSPEC void SDLCALL SDL_LogInfo(int category, const char *fmt, ...);
1.26 +extern DECLSPEC void SDLCALL SDL_LogInfo(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
1.27
1.28 /**
1.29 * \brief Log a message with SDL_LOG_PRIORITY_WARN
1.30 */
1.31 -extern DECLSPEC void SDLCALL SDL_LogWarn(int category, const char *fmt, ...);
1.32 +extern DECLSPEC void SDLCALL SDL_LogWarn(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
1.33
1.34 /**
1.35 * \brief Log a message with SDL_LOG_PRIORITY_ERROR
1.36 */
1.37 -extern DECLSPEC void SDLCALL SDL_LogError(int category, const char *fmt, ...);
1.38 +extern DECLSPEC void SDLCALL SDL_LogError(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
1.39
1.40 /**
1.41 * \brief Log a message with SDL_LOG_PRIORITY_CRITICAL
1.42 */
1.43 -extern DECLSPEC void SDLCALL SDL_LogCritical(int category, const char *fmt, ...);
1.44 +extern DECLSPEC void SDLCALL SDL_LogCritical(int category, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
1.45
1.46 /**
1.47 * \brief Log a message with the specified category and priority.
1.48 */
1.49 extern DECLSPEC void SDLCALL SDL_LogMessage(int category,
1.50 SDL_LogPriority priority,
1.51 - const char *fmt, ...);
1.52 + SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(3);
1.53
1.54 /**
1.55 * \brief Log a message with the specified category and priority.