| 510 | #endif |
| 511 | |
| 512 | void |
| 513 | nethack_exit(int code) |
| 514 | { |
| 515 | /* Only if we started from the GUI, not the command prompt, |
| 516 | * we need to get one last return, so the score board does |
| 517 | * not vanish instantly after being created. |
| 518 | * GUILaunched is defined and set in consoletty.c. |
| 519 | */ |
| 520 | |
| 521 | if (getreturn_enabled) { |
| 522 | raw_print("\n"); |
| 523 | if (iflags.window_inited) |
| 524 | wait_synch(); |
| 525 | } |
| 526 | /* frees some status tracking data */ |
| 527 | genl_status_finish(); |
| 528 | #ifdef MSWIN_GRAPHICS |
| 529 | free_winmain_stuff(); |
| 530 | #endif |
| 531 | exit(code); |
| 532 | } |
| 533 | |
| 534 | void |
| 535 | get_nhuuid(void) |
no test coverage detected