| 82 | } |
| 83 | |
| 84 | int m_vprintf ( const char * format, va_list arg ) |
| 85 | { |
| 86 | if (!_puts_callback) |
| 87 | { |
| 88 | return 0; |
| 89 | } |
| 90 | |
| 91 | char buf[MPRINTF_BUF_SIZE]; |
| 92 | int len = m_vsnprintf(buf, sizeof(buf), format, arg); |
| 93 | return _puts_callback(buf, std::min((size_t)len, sizeof(buf))); |
| 94 | } |
| 95 | |
| 96 | |
| 97 | /** |
no test coverage detected