sdlClearError function

bool sdlClearError()

Clear any previous error message for this thread.

\returns true.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

\sa SDL_GetError \sa SDL_SetError

extern SDL_DECLSPEC bool SDLCALL SDL_ClearError(void)

Implementation

bool sdlClearError() {
  final sdlClearErrorLookupFunction = libSdl3
      .lookupFunction<Uint8 Function(), int Function()>('SDL_ClearError');
  return sdlClearErrorLookupFunction() == 1;
}