This commit is contained in:
fourtf
2018-04-28 13:48:49 +02:00
82 changed files with 959 additions and 794 deletions
+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <QCoreApplication>
#include <QThread>
#include <cassert>
namespace chatterino {
namespace util {
void assertInGuiThread()
{
#ifdef _DEBUG
assert(QCoreApplication::instance()->thread() == QThread::currentThread());
#endif
}
} // namespace util
} // namespace chatterino