31 #if SDL_THREADS_DISABLED
34 #define SDL_GetErrBuf() (&SDL_global_error)
39 #define SDL_ERRBUFIZE 1024
59 if (fmt ==
NULL)
return -1;
70 while (*fmt ==
'.' || (*fmt >=
'0' && *fmt <=
'9')) {
95 const char *
str = va_arg(ap,
const char *);
141 while (*fmt && (maxlen > 0)) {
143 char tmp[32], *spot = tmp;
145 while ((*fmt ==
'.' || (*fmt >=
'0' && *fmt <=
'9'))
242 main(
int argc,
char *argv[])
251 SDL_SetError(
"This is the error: %s (%f)", buffer, 1.0);
int main(int argc, char **argv)
DECLSPEC int SDLCALL SDL_snprintf(char *text, size_t maxlen, const char *fmt,...)
static const char * SDL_LookupString(const char *key)
DECLSPEC const char *SDLCALL SDL_GetError(void)
SDL_error * SDL_GetErrBuf(void)
EGLContext EGLenum EGLClientBuffer buffer
DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code)
DECLSPEC size_t SDLCALL SDL_strlcpy(char *dst, const char *src, size_t maxlen)
DECLSPEC void *SDLCALL SDL_memset(void *dst, int c, size_t len)
DECLSPEC int SDLCALL SDL_SetError(const char *fmt,...)
#define SDL_arraysize(array)
static char * SDL_GetErrorMsg(char *errstr, unsigned int maxlen)
DECLSPEC void SDLCALL SDL_ClearError(void)
GLenum GLuint GLsizei const GLchar * buf
DECLSPEC void SDLCALL SDL_LogError(int category, const char *fmt,...)
Log a message with SDL_LOG_PRIORITY_ERROR.
union SDL_error::@81 args[ERR_MAX_ARGS]