|
Size: 783
Comment: null
|
Size: 822
Comment: update content (w/ Sam)
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 29: | Line 29: |
| ''You can add useful comments here'' | Calling this function will replace any previous error message that was set. |
SDL_SetError
Use this function to set the SDL error string.
Syntax
void SDL_SetError(const char* fmt,
...)
Function Parameters
fmt |
a printf() style message format string |
... |
additional parameters matching % tokens in the fmt string, if any |
Code Examples
SDL_SetError("Something unexpected happened!");
SDL_SetError("Something unexpected happened: Error Code %d", -37);
Remarks
Calling this function will replace any previous error message that was set.
