I just found the existence of qt_noop()
define in the qglobal.h as:
inline void qt_noop() {}
What's the point of it?
I know it's used internally in some macros that should do something only for debug builds, for example:
# ifndef QT_NO_DEBUG
# define Q_ASSERT(cond) ((!(cond)) ? qt_assert(#cond,__FILE__,__LINE__) : qt_noop())
# else
# define Q_ASSERT(cond) qt_noop()
# endif
#endif
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With