Go to the documentation of this file.
29 #define SDL_ERRBUFIZE 1024
51 if (fmt ==
NULL)
return -1;
62 while (*fmt ==
'.' || (*fmt >=
'0' && *fmt <=
'9')) {
74 case 'i':
case 'd':
case 'u':
case 'x':
case 'X':
97 const char *str = va_arg(ap,
const char *);
168 main(
int argc,
char *argv[])
188 #if defined(__clang__) || (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 2))))
189 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
214 while (*fmt && (maxlen > 0)) {
216 char tmp[32], *spot = tmp;
218 while ((*fmt ==
'.' || (*fmt >=
'0' && *fmt <=
'9'))
227 case 'i':
case 'd':
case 'u':
case 'x':
case 'X':
301 msg -= (-maxlen) + 1;
#define SDL_PRINTF_FORMAT_STRING
int SDL_Error(SDL_errorcode code)
#define SDL_LogGetPriority
static const char * SDL_LookupString(const char *key)
const char * SDL_GetError(void)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define SDL_arraysize(array)
int SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt,...)
union SDL_error::@28 args[ERR_MAX_ARGS]
SDL_error * SDL_GetErrBuf(void)
void SDL_ClearError(void)
static char * SDL_GetErrorMsg(char *errstr, int maxlen)
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)