| 517 | } |
| 518 | |
| 519 | void writeDebug(const QString &v) { |
| 520 | const auto msg = QString("%1 %2\n").arg(_logsEntryStart(), v); |
| 521 | _logsWrite(LogDataDebug, msg); |
| 522 | |
| 523 | #ifdef Q_OS_WIN |
| 524 | //OutputDebugString(reinterpret_cast<const wchar_t *>(msg.utf16())); |
| 525 | #elif defined Q_OS_MAC |
| 526 | //objc_outputDebugString(msg); |
| 527 | #elif defined _DEBUG |
| 528 | //std::cout << msg.toUtf8().constData(); |
| 529 | #endif |
| 530 | } |
| 531 | |
| 532 | void writeMtp(int32 dc, const QString &v) { |
| 533 | const auto expanded = [&] { |
no test coverage detected