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

Function panic_on_error

win/X11/winX.c:1524–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1522};
1523
1524static int
1525panic_on_error(Display *display, XErrorEvent *error)
1526{
1527 char buf[BUFSZ];
1528 XGetErrorText(display, error->error_code, buf, BUFSZ);
1529 fprintf(stderr,
1530 "X Error: code %i (%s), request %i, minor %i, serial %lu\n",
1531 error->error_code, buf,
1532 error->request_code, error->minor_code, error->serial);
1533 panic("X Error");
1534 return 0;
1535}
1536
1537static void
1538X11_error_handler(String str)

Callers

nothing calls this directly

Calls 2

fprintfFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected