edbee - Qt Editor Library
debug.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "edbee/util/logging.h"
9 
10 #if defined(QT_DEBUG) && !defined(__MINGW32__)
13  #define Q_ASSERT_GUI_THREAD Q_ASSERT( qApp->thread() == QThread::currentThread( ) )
14  #define Q_ASSERT_NOT_GUI_THREAD Q_ASSERT( qApp->thread() != QThread::currentThread( ) )
15 #else
16  #define Q_ASSERT_GUI_THREAD
17  #define Q_ASSERT_NOT_GUI_THREAD
18  #define pause_memleak_detection(value)
19 #endif
20 
21