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

Function main

test/browser/test_sdl_audio_beep.cpp:243–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243int main(int argc, char** argv) {
244 SDL_Init(SDL_INIT_AUDIO);
245
246 nextTest();
247
248#ifdef __EMSCRIPTEN__
249 emscripten_set_main_loop(update, 60, 0);
250#else
251 while(beep) {
252 SDL_Delay(20);
253 update();
254 }
255#endif
256
257 return 0;
258}

Callers

nothing calls this directly

Calls 2

nextTestFunction · 0.70
updateFunction · 0.70

Tested by

no test coverage detected