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

Function X11_error_handler

win/X11/winX.c:1537–1549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1535}
1536
1537static void
1538X11_error_handler(String str)
1539{
1540 nhUse(str);
1541#if defined(HANGUPHANDLING)
1542 hangup(1);
1543#ifdef SAFERHANGUP /* keeps going after hangup() for '#if SAFERHANGUP' */
1544 end_of_input();
1545#endif
1546#endif
1547 /*NOTREACHED*/
1548 nh_terminate(EXIT_FAILURE);
1549}
1550
1551static int
1552X11_io_error_handler(Display *display)

Callers 1

winX.cFile · 0.85

Calls 3

hangupFunction · 0.85
end_of_inputFunction · 0.85
nh_terminateFunction · 0.50

Tested by

no test coverage detected