Browse Source

Remove disabled self test main functions in src/SDL_error.c

Anonymous Maarten 2 năm trước cách đây
mục cha
commit
048df6260c
1 tập tin đã thay đổi với 0 bổ sung16 xóa
  1. 0 16
      src/SDL_error.c

+ 0 - 16
src/SDL_error.c

@@ -91,22 +91,6 @@ int SDL_Error(SDL_errorcode code)
     }
 }
 
-#ifdef TEST_ERROR
-int main(int argc, char *argv[])
-{
-    char buffer[BUFSIZ + 1];
-
-    SDL_SetError("Hi there!");
-    printf("Error 1: %s\n", SDL_GetError());
-    SDL_ClearError();
-    SDL_memset(buffer, '1', BUFSIZ);
-    buffer[BUFSIZ] = 0;
-    SDL_SetError("This is the error: %s (%f)", buffer, 1.0);
-    printf("Error 2: %s\n", SDL_GetError());
-    exit(0);
-}
-#endif
-
 char *
 SDL_GetErrorMsg(char *errstr, int maxlen)
 {