mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
18 lines
326 B
C++
18 lines
326 B
C++
#pragma once
|
|
|
|
#include <QCoreApplication>
|
|
#include <QThread>
|
|
#include <cassert>
|
|
|
|
namespace chatterino {
|
|
namespace util {
|
|
|
|
static void assertInGuiThread()
|
|
{
|
|
#ifdef _DEBUG
|
|
assert(QCoreApplication::instance()->thread() == QThread::currentThread());
|
|
#endif
|
|
}
|
|
|
|
} // namespace util
|
|
} // namespace chatterino
|