MCPcopy Create free account
hub / github.com/GJDuck/e9patch / e9debug_impl

Function e9debug_impl

src/e9patch/e9loader_pe.cpp:238–251  ·  view source on GitHub ↗

* Write a debug message. */

Source from the content-addressed store, hash-verified

236 * Write a debug message.
237 */
238static NO_INLINE void e9debug_impl(void *stderr, write_console_t WriteConsole,
239 const char *msg, ...)
240{
241 char buf[BUFSIZ], *str = buf;
242 str = e9write_str(str, "e9patch loader debug: ");
243 va_list ap;
244 va_start(ap, msg);
245 str = e9write_format(str, msg, ap);
246 va_end(ap);
247 str = e9write_char(str, '\n');
248
249 size_t len = str - buf;
250 WriteConsole(stderr, buf, len, NULL, NULL);
251}
252#define e9debug(msg, ...) \
253 e9debug_impl(stderr, WriteConsole, msg, ##__VA_ARGS__)
254

Callers

nothing calls this directly

Calls 3

e9write_strFunction · 0.85
e9write_formatFunction · 0.85
e9write_charFunction · 0.85

Tested by

no test coverage detected