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

Function SDLTest_CommonDefaultArgs

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

Source from the content-addressed store, hash-verified

581
582
583SDL_bool
584SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, const int argc, char **argv)
585{
586 int i = 1;
587 while (i < argc) {
588 const int consumed = SDLTest_CommonArg(state, i);
589 if (consumed == 0) {
590 SDLTest_CommonLogUsage(state, argv[0], NULL);
591 return SDL_FALSE;
592 }
593 i += consumed;
594 }
595 return SDL_TRUE;
596}
597
598static void
599SDLTest_PrintRendererFlag(char *text, size_t maxlen, Uint32 flag)

Callers 5

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

Calls 2

SDLTest_CommonArgFunction · 0.85
SDLTest_CommonLogUsageFunction · 0.85

Tested by

no test coverage detected