SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | SDL_ERRBUFIZE 1024 |
Functions | |
static const char * | SDL_LookupString (const char *key) |
static char * | SDL_GetErrorMsg (char *errstr, int maxlen) |
int | SDL_SetError (SDL_PRINTF_FORMAT_STRING const char *fmt,...) |
const char * | SDL_GetError (void) |
void | SDL_ClearError (void) |
int | SDL_Error (SDL_errorcode code) |
#define SDL_ERRBUFIZE 1024 |
Definition at line 29 of file SDL_error.c.
Definition at line 138 of file SDL_error.c.
References SDL_error::error, and SDL_GetErrBuf().
int SDL_Error | ( | SDL_errorcode | code | ) |
Definition at line 148 of file SDL_error.c.
References SDL_EFREAD, SDL_EFSEEK, SDL_EFWRITE, SDL_ENOMEM, SDL_SetError(), and SDL_UNSUPPORTED.
const char* SDL_GetError | ( | void | ) |
|
static |
Definition at line 196 of file SDL_error.c.
References SDL_error::args, SDL_error::error, SDL_error::key, SDL_arraysize, SDL_GetErrBuf(), SDL_LookupString(), SDL_snprintf, SDL_error::value_f, SDL_error::value_i, SDL_error::value_l, and SDL_error::value_ptr.
Referenced by SDL_GetError(), and SDL_SetError().
|
static |
Definition at line 34 of file SDL_error.c.
Referenced by SDL_GetErrorMsg().
int SDL_SetError | ( | SDL_PRINTF_FORMAT_STRING const char * | fmt, |
... | |||
) |
Definition at line 45 of file SDL_error.c.
References SDL_error::argc, SDL_error::args, SDL_error::buf, ERR_MAX_ARGS, ERR_MAX_STRLEN, SDL_error::error, i, SDL_error::key, NULL, SDL_ERRBUFIZE, SDL_GetErrBuf(), SDL_GetErrorMsg(), SDL_LOG_CATEGORY_ERROR, SDL_LOG_PRIORITY_DEBUG, SDL_LogDebug, SDL_LogGetPriority, SDL_strlcpy, SDL_error::value_f, SDL_error::value_i, SDL_error::value_l, and SDL_error::value_ptr.
Referenced by SDL_Error().