Set the SDL error message for the current thread.
Defined in SDL_error.h
fmt | a printf()-style message format string |
... | additional parameters matching % tokens in the fmt string, if any |
Returns always -1.
Calling this function will replace any previous error message that was set.
This function always returns -1, since SDL frequently uses -1 to signify an failing result, leading to this idiom:
This function is available since SDL 2.0.0.