SDL_ClearError

Use this function to clear any previous error message. 使用本函数可以清除之前的错误信息。

Syntax 函数声明

  1. void SDL_ClearError(void)

Code Examples 使用示例

  1. const char *error = SDL_GetError();
  2. if (*error) {
  3. SDL_Log("SDL error: %s", error);
  4. SDL_ClearError();
  5. }

Remarks 注意事项

You can add useful comments here

Related Functions 相关函数

SDL_GetError
SDL_SetError


@DXkite Translated.