OSDN Git Service

サンプルコードを修正
authormaruhiro <maruhiro@bridge.ocn.ne.jp>
Sun, 23 Jan 2022 11:37:28 +0000 (20:37 +0900)
committermaruhiro <maruhiro@bridge.ocn.ne.jp>
Sun, 23 Jan 2022 11:37:28 +0000 (20:37 +0900)
SDL_CreateThread.html
SDL_GetThreadID.html
SDL_WaitThread.html

index 8ddefd8..04f8f30 100644 (file)
@@ -55,7 +55,7 @@ int main(int argc, char *argv[])
     thread = SDL_CreateThread(TestThread, "TestThread", (void *)NULL);\r
 \r
     if (NULL == thread) {\r
-        SDL_LogError("SDL_CreateThread \8e¸\94s: %s\n", SDL_GetError());\r
+        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_CreateThread \8e¸\94s: %s\n", SDL_GetError());\r
     } else {\r
         SDL_WaitThread(thread, &threadReturnValue);\r
         SDL_Log("\83X\83\8c\83b\83h\82Ì\96ß\82è\92l: %d\n", threadReturnValue);\r
index 142f6c1..cd5fad4 100644 (file)
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
     thread = SDL_CreateThread(TestThread, "TestThread", (void *)NULL);\r
 \r
     if (NULL == thread) {\r
-        SDL_LogError("\nSDL_CreateThread \8e¸\94s: %s\n", SDL_GetError());\r
+        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "\nSDL_CreateThread \8e¸\94s: %s\n", SDL_GetError());\r
         exit(-1);\r
     }\r
 \r
index 4b15882..e2d5b03 100644 (file)
@@ -53,7 +53,7 @@ int main(int argc, char *argv[])
     thread = SDL_CreateThread(TestThread, "TestThread", (void *)NULL);\r
 \r
     if (NULL == thread) {\r
-        SDL_LogError("\nSDL_CreateThread \8e¸\94s: %s\n", SDL_GetError());\r
+        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "\nSDL_CreateThread \8e¸\94s: %s\n", SDL_GetError());\r
         exit(-1);\r
     }\r
 \r