|
Size: 688
Comment: update content (w/ Sam); remove 'draft' note
|
Size: 783
Comment: null
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 24: | Line 24: |
| {{{#!highlight cpp SDL_SetError("Something unexpected happened: Error Code %d", -37); }}} |
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
You can add useful comments here
