SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | SDL_ERRBUFIZE 1024 |
Functions | |
SDL_error * | SDL_GetErrBuf (void) |
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 39 of file SDL_error.c.
Referenced by SDL_GetError(), and SDL_SetError().
Definition at line 148 of file SDL_error.c.
References SDL_error::error, and SDL_GetErrBuf().
Referenced by SDL_Error().
int SDL_Error | ( | SDL_errorcode | code | ) |
Definition at line 158 of file SDL_error.c.
References main, SDL_ClearError(), SDL_EFREAD, SDL_EFSEEK, SDL_EFWRITE, SDL_ENOMEM, SDL_GetError(), SDL_memset, SDL_SetError(), and SDL_UNSUPPORTED.
Definition at line 206 of file SDL_thread.c.
Referenced by SDL_ClearError(), SDL_GetErrorMsg(), and SDL_SetError().
const char* SDL_GetError | ( | void | ) |
Definition at line 140 of file SDL_error.c.
References SDL_ERRBUFIZE, and SDL_GetErrorMsg().
Referenced by SDL_Error().
|
static |
Definition at line 206 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(), SDL_LookupString(), and SDL_SetError().
|
static |
Definition at line 44 of file SDL_error.c.
References SDL_GetErrorMsg().
Referenced by SDL_GetErrorMsg().
int SDL_SetError | ( | SDL_PRINTF_FORMAT_STRING const char * | fmt, |
... | |||
) |
Definition at line 55 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().