Wiki Page Content

Differences between revisions 11 and 12
Revision 11 as of 2014-06-22 11:27:55
Size: 529
Comment: printf -> SDL_Log().
Revision 12 as of 2016-05-11 20:30:45
Size: 549
Comment: Added SDL_SetError to Related functions.
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
 .[[SDL_SetError]]

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 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