|
Size: 510
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
|
Size: 719
Comment: add 'draft' note
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| Use this function to ^clear an error message^. | Use this function to clear any previous error message. |
| Line 17: | Line 17: |
| You can add your code example here | if (strlen(SDL_GetError()) != 0) { printf("SDL_Error : %s\n", SDL_GetError()); SDL_ClearError(); } |
| Line 21: | Line 24: |
| ''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>>* |
| Line 24: | Line 27: |
| .[[SDL_GetError]] ??? | .[[SDL_GetError]] |
DRAFT |
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.
*
