Go to the documentation of this file.
31 #if SDL_THREADS_DISABLED
34 #define SDL_GetErrBuf() (&SDL_global_error)
39 #define SDL_ERRBUFIZE 1024
61 if (fmt ==
NULL)
return -1;
72 while (*fmt ==
'.' || (*fmt >=
'0' && *fmt <=
'9')) {
84 case 'i':
case 'd':
case 'u':
case 'x':
case 'X':
107 const char *str = va_arg(ap,
const char *);
178 main(
int argc,
char *argv[])
198 #if defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 2))))
199 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
224 while (*fmt && (maxlen > 0)) {
226 char tmp[32], *spot = tmp;
228 while ((*fmt ==
'.' || (*fmt >=
'0' && *fmt <=
'9'))
237 case 'i':
case 'd':
case 'u':
case 'x':
case 'X':
311 msg -= (-maxlen) + 1;
#define SDL_PRINTF_FORMAT_STRING
int SDL_Error(SDL_errorcode code)
union SDL_error::@35 args[ERR_MAX_ARGS]
#define SDL_LogGetPriority
static const char * SDL_LookupString(const char *key)
const char * SDL_GetError(void)
SDL_error * SDL_GetErrBuf(void)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define SDL_arraysize(array)
int SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt,...)
void SDL_ClearError(void)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
static char * SDL_GetErrorMsg(char *errstr, int maxlen)