MCPcopy Create free account
hub / github.com/NetHack/NetHack / win32_abort

Function win32_abort

sys/windows/windsys.c:286–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void
287win32_abort(void)
288{
289 int c;
290
291 if (WINDOWPORT(mswin) || WINDOWPORT(tty)) {
292 if (iflags.window_inited)
293 exit_nhwindows((char *) 0);
294 iflags.window_inited = FALSE;
295 }
296 if (wizard) {
297 raw_print("Execute debug breakpoint wizard?");
298 if ((c = nhgetch()) == 'y' || c == 'Y')
299 DebugBreak();
300 }
301 abort();
302}
303
304static char interjection_buf[INTERJECTION_TYPES][1024];
305static int interjection[INTERJECTION_TYPES];

Callers 1

NH_abortFunction · 0.50

Calls 1

raw_printFunction · 0.85

Tested by

no test coverage detected