|
Size: 529
Comment: printf -> SDL_Log().
|
← Revision 12 as of 2016-05-11 20:30:45 ⇥
Size: 549
Comment: Added SDL_SetError to Related functions.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 28: | Line 28: |
| .[[SDL_SetError]] |
SDL_ClearError
Use this function to clear any previous error message.
Syntax
void SDL_ClearError(void)
Code Examples
const char *error = SDL_GetError();
if (*error) {
SDL_Log("SDL error: %s", error);
SDL_ClearError();
}
Remarks
You can add useful comments here
