int SDL_SetError(const char* fmt, ...)
fmt | printf()形式の文字列形式 |
... | fmt文字列の%トークンに一致する追加の引数 |
SDL_SetError("予期しない異常が発生した!");
int errorCode = 0;
...
errorCode = -37;
...
if (errorCode < 0)
SDL_SetError("予期しない異常が発生した: エラーコード %d", errorCode);