| 276 | } |
| 277 | |
| 278 | static void mi_cdecl mi_buffered_out(const char* msg, void* arg) { |
| 279 | buffered_t* buf = (buffered_t*)arg; |
| 280 | if (msg==NULL || buf==NULL) return; |
| 281 | for (const char* src = msg; *src != 0; src++) { |
| 282 | char c = *src; |
| 283 | if (buf->used >= buf->count) mi_buffered_flush(buf); |
| 284 | mi_assert_internal(buf->used < buf->count); |
| 285 | buf->buf[buf->used++] = c; |
| 286 | if (c == '\n') mi_buffered_flush(buf); |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | //------------------------------------------------------------ |
| 291 | // Print statistics |
nothing calls this directly
no test coverage detected