X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=SDL_ClearError.html;h=3cb8c6167b2f9bc6e7eb36b5d7588259a7e3438b;hb=92cbfe7179245e81a086d4197d0e6671f09fb670;hp=605fc53d5ca07489e7c2bf0f46398614d075db8e;hpb=86a7789c79cc179fb582ce3b5c1e00d76cfb6a59;p=sdl2referencejp%2Fsdl2referencejp.git diff --git a/SDL_ClearError.html b/SDL_ClearError.html index 605fc53..3cb8c61 100644 --- a/SDL_ClearError.html +++ b/SDL_ClearError.html @@ -15,8 +15,23 @@ G[bZ[WðÁ·é
void SDL_ClearError(void)
+
+
+
+
+const char *error = SDL_GetError();
+if (*error) {
+ SDL_Log("SDL_Error : %s", error);
+ SDL_ClearError();
+}
+
+