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:
parent
8bdd530d7d
commit
c68d355ce5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue