MCPcopy Create free account
hub / github.com/atrexus/vulkan / console_ctrl_handler

Function console_ctrl_handler

src/main.cpp:10–19  ·  view source on GitHub ↗

The console control handler. Used to terminate the application when CTRL+C or CTRL+BREAK is pressed.

Source from the content-addressed store, hash-verified

8/// The console control handler. Used to terminate the application when CTRL+C or CTRL+BREAK is pressed.
9/// </summary>
10static BOOL WINAPI console_ctrl_handler( DWORD ctrl_type )
11{
12 if ( ctrl_type == CTRL_C_EVENT || ctrl_type == CTRL_BREAK_EVENT )
13 {
14 stop_source.request_stop( );
15 return TRUE;
16 }
17
18 return FALSE;
19}
20
21std::int32_t main( std::int32_t argc, char* argv[] )
22{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected