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

Function vprogerror

outdated/sys/mac/macerrs.c:115–130  ·  view source on GitHub ↗
(line, the_args)

Source from the content-addressed store, hash-verified

113vprogerror(const char *line, va_list the_args)
114#else
115static void
116vprogerror(line, the_args) const char *line; va_list the_args;
117#endif
118
119#else /* USE_STDARG | USE_VARARG */
120
121void
122error VA_DECL(const char *, line)
123#endif
124{ /* opening brace for vprogerror(), nested block for USE_OLDARG error() */
125 char pbuf[BUFSZ];
126
127 if(strchr(line, '%')) {
128 Vsprintf(pbuf,line,VA_ARGS);
129 line = pbuf;
130 }
131 showerror("of an internal error",line);
132
133#if !(defined(USE_STDARG) || defined(USE_VARARGS))

Callers 1

VA_DECLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected