Commit a7209e06 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

VlmcDebug: Add an overload for std::string

parent d16bd9db
......@@ -27,6 +27,12 @@
#include <QThread>
#include <QTime>
inline QDebug operator<<( QDebug& qdbg, const std::string& str )
{
qdbg << str.c_str();
return qdbg;
}
inline QDebug vlmcDebug()
{
return (qDebug().nospace() << '[' << qPrintable(QTime::currentTime().toString("hh:mm:ss.zzz")) << "] T #" << QThread::currentThreadId() << " D:").space();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment