MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDLTest_CommonLogUsage

Function SDLTest_CommonLogUsage

deps/SDL2/src/test/SDL_test_common.c:497–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497void
498SDLTest_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
524static const char *
525BuildCommonUsageString(char **pstr, const char **strlist, const int numitems, const char **strlist2, const int numitems2)

Callers 12

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

SDL_LogFunction · 0.85

Tested by

no test coverage detected