Updated source to match SDL function prototype style
This commit is contained in:
1 parent
737aa881fa
commit
ddbdd73258
173 files changed
+481
-942
No files matched your search
+2
-4
@@ -60,8 +60,7 @@ int SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...)
|
||||
}
|
||||
|
||||
/* Available for backwards compatibility */
|
||||
const char *
|
||||
SDL_GetError(void)
|
||||
const char *SDL_GetError(void)
|
||||
{
|
||||
const SDL_error *error = SDL_GetErrBuf();
|
||||
return error->error ? error->str : "";
|
||||
@@ -91,8 +90,7 @@ int SDL_Error(SDL_errorcode code)
|
||||
}
|
||||
}
|
||||
|
||||
char *
|
||||
SDL_GetErrorMsg(char *errstr, int maxlen)
|
||||
char *SDL_GetErrorMsg(char *errstr, int maxlen)
|
||||
{
|
||||
const SDL_error *error = SDL_GetErrBuf();
|
||||
|
||||
|
||||
Reference in new issue
Block a user