|
Size: 457
Comment: update content (w/ Sam); remove 'draft' note
|
Size: 662
Comment: update content (old wiki)
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 16: | Line 16: |
| You can add your code example here | if (strlen(SDL_GetError()) != 0) { printf("SDL_Error : %s\n", SDL_GetError()); SDL_ClearError(); } |
| Line 20: | Line 23: |
| ''You can add useful comments here'' | *<<BR>>[[SDL_ClearError]]() deletes all information about the last internal SDL error. ^This is particularly^ useful if the error has been handled by the program. <<BR>>* |
SDL_ClearError
Use this function to clear any previous error message.
Syntax
void SDL_ClearError(void)
Code Examples
if (strlen(SDL_GetError()) != 0) {
printf("SDL_Error : %s\n", SDL_GetError());
SDL_ClearError();
}
Remarks
*
SDL_ClearError() deletes all information about the last internal SDL error. This is particularly useful if the error has been handled by the program.
*
