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

Function VA_DECL

sys/windows/consoletty.c:2034–2049  ·  view source on GitHub ↗

fatal error */ VARARGS1*/

Source from the content-addressed store, hash-verified

2032/* fatal error */
2033/*VARARGS1*/
2034void consoletty_error
2035VA_DECL(const char *, s)
2036{
2037 char buf[BUFSZ];
2038 VA_START(s);
2039 VA_INIT(s, const char *);
2040 /* error() may get called before tty is initialized */
2041 if (iflags.window_inited)
2042 end_screen();
2043 buf[0] = '\n';
2044 (void) vsnprintf(&buf[1], sizeof buf - 1, s, VA_ARGS);
2045 msmsg(buf);
2046 really_move_cursor();
2047 VA_END();
2048 exit(EXIT_FAILURE);
2049}
2050#endif
2051
2052void

Callers

nothing calls this directly

Calls 8

msmsgFunction · 0.85
really_move_cursorFunction · 0.85
fprintfFunction · 0.85
init_ttycolorFunction · 0.85
pgetcharFunction · 0.85
raw_clear_screenFunction · 0.85
set_console_cursorFunction · 0.85
xputsFunction · 0.70

Tested by

no test coverage detected