MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_Error

Function SDL_Error

deps/SDL2/src/SDL_error.c:147–164  ·  view source on GitHub ↗

Very common errors go here */

Source from the content-addressed store, hash-verified

145
146/* Very common errors go here */
147int
148SDL_Error(SDL_errorcode code)
149{
150 switch (code) {
151 case SDL_ENOMEM:
152 return SDL_SetError("Out of memory");
153 case SDL_EFREAD:
154 return SDL_SetError("Error reading from datastream");
155 case SDL_EFWRITE:
156 return SDL_SetError("Error writing to datastream");
157 case SDL_EFSEEK:
158 return SDL_SetError("Error seeking in datastream");
159 case SDL_UNSUPPORTED:
160 return SDL_SetError("That operation is not supported");
161 default:
162 return SDL_SetError("Unknown SDL error");
163 }
164}
165
166#ifdef TEST_ERROR
167int

Callers 12

Android_JNI_FileSeekFunction · 0.85
SDLTest_GenerateRunSeedFunction · 0.85
SDLTest_GenerateExecKeyFunction · 0.85
SDLTest_RunSuitesFunction · 0.85
windows_file_readFunction · 0.85
windows_file_writeFunction · 0.85
stdio_seekFunction · 0.85
stdio_readFunction · 0.85
stdio_writeFunction · 0.85
stdio_closeFunction · 0.85
SDL_LoadBMP_RWFunction · 0.85
SDL_SaveBMP_RWFunction · 0.85

Calls 1

SDL_SetErrorFunction · 0.85

Tested by 3

SDLTest_GenerateRunSeedFunction · 0.68
SDLTest_GenerateExecKeyFunction · 0.68
SDLTest_RunSuitesFunction · 0.68