MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / main

Function main

test/browser/test_sdl2_audio_beep.cpp:232–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232int main(int argc, char** argv) {
233 SDL_Init(SDL_INIT_AUDIO);
234
235 nextTest();
236
237 if (!beep)
238 return 1;
239
240#ifdef __EMSCRIPTEN__
241 emscripten_set_main_loop(update, 60, 0);
242#else
243 while(beep) {
244 SDL_Delay(20);
245 update();
246 }
247#endif
248
249 return 0;
250}

Callers

nothing calls this directly

Calls 2

nextTestFunction · 0.70
updateFunction · 0.70

Tested by

no test coverage detected