Wiki Page Content

Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2010-05-13 05:00:31
Size: 511
Editor: SheenaSmith
Comment: update content (from Sam)
Revision 4 as of 2010-08-27 21:05:47
Size: 662
Editor: SheenaSmith
Comment: update content (old wiki)
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 any previous errors. 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 21: 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>>*
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

*
SDL_ClearError() deletes all information about the last internal SDL error. This is particularly useful if the error has been handled by the program.
*


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