MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / terminate

Method terminate

framework/platform/android/android_platform.cpp:445–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445void AndroidPlatform::terminate(ExitCode code)
446{
447 switch (code)
448 {
449 case ExitCode::Success:
450 case ExitCode::Close:
451 log_output.clear();
452 break;
453 case ExitCode::FatalError:
454 {
455 const std::string error_message = "Error! Could not launch selected sample:" + get_last_error();
456 send_notification(error_message);
457 break;
458 }
459 default:
460 break;
461 }
462
463 while (process_android_events(app))
464 {
465 // Process events until app->destroyRequested is set
466 }
467
468 plugins.clear();
469 Platform::terminate(code);
470}
471
472void AndroidPlatform::send_notification(const std::string &message)
473{

Callers

nothing calls this directly

Calls 2

process_android_eventsFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected