SDL
2.0
|
Go to the source code of this file.
Functions | |
int | SDL_SetError (SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(1) |
const char * | SDL_GetError (void) |
void | SDL_ClearError (void) |
Internal error functions | |
Private error reporting function - used internally. | |
#define | SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) |
#define | SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) |
#define | SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param)) |
enum | SDL_errorcode { SDL_ENOMEM, SDL_EFREAD, SDL_EFWRITE, SDL_EFSEEK, SDL_UNSUPPORTED, SDL_LASTERROR } |
int | SDL_Error (SDL_errorcode code) |
Simple error message routines for SDL.
Definition in file SDL_error.h.
#define SDL_InvalidParamError | ( | param | ) | SDL_SetError("Parameter '%s' is invalid", (param)) |
Definition at line 54 of file SDL_error.h.
#define SDL_OutOfMemory | ( | ) | SDL_Error(SDL_ENOMEM) |
Definition at line 52 of file SDL_error.h.
#define SDL_Unsupported | ( | ) | SDL_Error(SDL_UNSUPPORTED) |
Definition at line 53 of file SDL_error.h.
enum SDL_errorcode |
Enumerator | |
---|---|
SDL_ENOMEM | |
SDL_EFREAD | |
SDL_EFWRITE | |
SDL_EFSEEK | |
SDL_UNSUPPORTED | |
SDL_LASTERROR |
Definition at line 55 of file SDL_error.h.
Definition at line 145 of file SDL_dynapi_procs.h.
References SDL_error::error, and SDL_GetErrBuf().
int SDL_Error | ( | SDL_errorcode | code | ) |
Definition at line 158 of file SDL_error.c.
References SDL_EFREAD, SDL_EFSEEK, SDL_EFWRITE, SDL_ENOMEM, SDL_SetError(), and SDL_UNSUPPORTED.
const char* SDL_GetError | ( | void | ) |
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().