|
Size: 719
Comment: add 'draft' note
|
Size: 535
Comment: null
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| | |
| Line 17: | Line 16: |
| if (strlen(SDL_GetError()) != 0) { printf("SDL_Error : %s\n", SDL_GetError()); |
const char *error = SDL_GetError(); if (*error) { printf("SDL_Error : %s\n", error); |
| Line 24: | Line 24: |
| *<<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>>* | ''You can add useful comments here'' |
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) {
printf("SDL_Error : %s\n", error);
SDL_ClearError();
}
Remarks
You can add useful comments here
