| 495 | } |
| 496 | |
| 497 | void |
| 498 | SDLTest_CommonLogUsage(SDLTest_CommonState * state, const char *argv0, const char **options) |
| 499 | { |
| 500 | int i; |
| 501 | |
| 502 | SDL_Log("USAGE: %s", argv0); |
| 503 | SDL_Log(" %s", "[--trackmem]"); |
| 504 | |
| 505 | if (state->flags & SDL_INIT_VIDEO) { |
| 506 | for (i = 0; i < SDL_arraysize(video_usage); i++) { |
| 507 | SDL_Log(" %s", video_usage[i]); |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | if (state->flags & SDL_INIT_AUDIO) { |
| 512 | for (i = 0; i < SDL_arraysize(audio_usage); i++) { |
| 513 | SDL_Log(" %s", audio_usage[i]); |
| 514 | } |
| 515 | } |
| 516 | |
| 517 | if (options) { |
| 518 | for (i = 0; options[i] != NULL; i++) { |
| 519 | SDL_Log(" %s", options[i]); |
| 520 | } |
| 521 | } |
| 522 | } |
| 523 | |
| 524 | static const char * |
| 525 | BuildCommonUsageString(char **pstr, const char **strlist, const int numitems, const char **strlist2, const int numitems2) |
no test coverage detected