|
Size: 510
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
|
Size: 530
Comment: Changed NULL check in example.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| #pragma disable-camelcase ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| |
#pragma camelcase off |
| Line 6: | Line 5: |
| Use this function to ^clear an error message^. | Use this function to clear any previous error message. |
| Line 17: | Line 16: |
| You can add your code example here | const char *error = SDL_GetError(); if (error) { printf("SDL_Error : %s\n", error); SDL_ClearError(); } |
| Line 24: | Line 27: |
| .[[SDL_GetError]] ??? | .[[SDL_GetError]] |
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
