Wiki Page Content

Differences between revisions 10 and 11
Revision 10 as of 2013-11-04 18:56:45
Size: 531
Comment: Reverted previous edit. SDL_GetError() never returns NULL.
Revision 11 as of 2014-06-22 11:27:55
Size: 529
Comment: printf -> SDL_Log().
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
  printf("SDL_Error : %s\n", error);   SDL_Log("SDL error: %s", error);

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) {
  SDL_Log("SDL error: %s", error);
  SDL_ClearError();
}

Remarks

You can add useful comments here


CategoryAPI, CategoryError

None: SDL_ClearError (last edited 2014-06-22 11:27:55 by PhilippWiesemann)

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