mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 04:45:03 +08:00
when running barriers/barrierc inside a windows debugger, add a pause
before exiting so the output in the terminal window can be read
This commit is contained in:
@@ -46,5 +46,13 @@ main(int argc, char** argv)
|
||||
EventQueue events;
|
||||
|
||||
ClientApp app(&events, createTaskBarReceiver);
|
||||
return app.run(argc, argv);
|
||||
int result = app.run(argc, argv);
|
||||
#if SYSAPI_WIN32
|
||||
if (IsDebuggerPresent()) {
|
||||
printf("\n\nHit a key to close...\n");
|
||||
getchar();
|
||||
}
|
||||
#endif
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
@@ -46,5 +46,12 @@ main(int argc, char** argv)
|
||||
EventQueue events;
|
||||
|
||||
ServerApp app(&events, createTaskBarReceiver);
|
||||
return app.run(argc, argv);
|
||||
int result = app.run(argc, argv);
|
||||
#if SYSAPI_WIN32
|
||||
if (IsDebuggerPresent()) {
|
||||
printf("\n\nHit a key to close...\n");
|
||||
getchar();
|
||||
}
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user