mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
17 lines
290 B
C++
17 lines
290 B
C++
#pragma once
|
|
|
|
#include <QCoreApplication>
|
|
#include <QThread>
|
|
#include <cassert>
|
|
|
|
namespace AB_NAMESPACE {
|
|
|
|
static void assertInGuiThread()
|
|
{
|
|
#ifdef _DEBUG
|
|
assert(QCoreApplication::instance()->thread() == QThread::currentThread());
|
|
#endif
|
|
}
|
|
|
|
} // namespace AB_NAMESPACE
|