Engauge Digitizer 2
Loading...
Searching...
No Matches
Macros | Functions
EngaugeAssert.h File Reference
#include "LoggerUpload.h"
#include <QtGlobal>
Include dependency graph for EngaugeAssert.h:

Go to the source code of this file.

Macros

#define ENGAUGE_ASSERT(cond)   ((!(cond)) ? LoggerUpload::loggerAssert(#cond,__FILE__,__LINE__) : engauge_noop(cond))
 Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE_ASSERT(cond) engauge_noop(cond) else.
 
#define ENGAUGE_CHECK_PTR(ptr)   (((ptr)==nullptr) ? LoggerUpload::loggerCheckPtr(#ptr,__FILE__,__LINE__) : engauge_noop((ptr)==nullptr))
 endif
 

Functions

void engauge_noop (bool)
 

Macro Definition Documentation

◆ ENGAUGE_ASSERT

Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE_ASSERT(cond) engauge_noop(cond) else.

Definition at line 20 of file EngaugeAssert.h.

◆ ENGAUGE_CHECK_PTR

endif

Drop in replacement for Q_CHECK_PTR if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE_CHECK_PTR(ptr) engauge_noop((ptr)==0) else

Definition at line 27 of file EngaugeAssert.h.

Function Documentation

◆ engauge_noop()

void engauge_noop ( bool )
inline

Definition at line 14 of file EngaugeAssert.h.

14{}