Merge pull request #747 from oliverschmidt/master
Only wait for a keypress if the user is told to press a key.
This commit is contained in:
commit
80edbe14a9
2 changed files with 4 additions and 0 deletions
|
@ -42,8 +42,10 @@
|
||||||
void
|
void
|
||||||
error_exit(void)
|
error_exit(void)
|
||||||
{
|
{
|
||||||
|
#if LOG_CONF_ENABLED
|
||||||
log_message("Press any key to continue ...", "");
|
log_message("Press any key to continue ...", "");
|
||||||
ctk_arch_getkey();
|
ctk_arch_getkey();
|
||||||
|
#endif /* LOG_CONF_ENABLED */
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -42,8 +42,10 @@
|
||||||
void
|
void
|
||||||
error_exit(void)
|
error_exit(void)
|
||||||
{
|
{
|
||||||
|
#if LOG_CONF_ENABLED
|
||||||
log_message("Press any key to continue ...", "");
|
log_message("Press any key to continue ...", "");
|
||||||
ctk_arch_getkey();
|
ctk_arch_getkey();
|
||||||
|
#endif /* LOG_CONF_ENABLED */
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in a new issue