Wiki Page Content

Differences between revisions 1 and 6 (spanning 5 versions)
Revision 1 as of 2010-05-08 20:35:37
Size: 510
Editor: SheenaSmith
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
Revision 6 as of 2010-08-29 18:54:57
Size: 528
Editor: SheenaSmith
Comment: update content (w/ Sam); remove 'draft' note
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
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 if (strlen(SDL_GetError()) != 0) {
  printf("SDL_Error : %s\n", SDL_GetError());
  SDL_ClearError();
}
Line 24: Line 26:
 .[[SDL_GetError]] ???  .[[SDL_GetError]]

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

You can add useful comments here


CategoryAPI, CategoryError

None: SDL_ClearError (last edited 2016-05-11 20:30:45 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit