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:
walker0643 2018-01-30 14:23:11 -05:00
parent 8bdd530d7d
commit c68d355ce5
2 changed files with 17 additions and 2 deletions

View File

@ -46,5 +46,13 @@ main(int argc, char** argv)
EventQueue events; EventQueue events;
ClientApp app(&events, createTaskBarReceiver); 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;
} }

View File

@ -46,5 +46,12 @@ main(int argc, char** argv)
EventQueue events; EventQueue events;
ServerApp app(&events, createTaskBarReceiver); 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;
} }