mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
16 lines
290 B
C++
16 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
|