JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches
Collaboration diagram for Debugging Tools:

Classes

class  JKQTPAutoOutputTimer
 RAII construct that times its lifetime, outputting properly indented qDebug()-message. More...
 
class  JKQTPHighResTimer
 This class implements a high resolution timer capable of measuring time intervals with a resolution of some microseconds. More...
 

Macros

#define JKQTPASSERT(condition)   { if (!(condition)) throw std::runtime_error("assertion failed (expression: "+std::string(#condition)+", function: "+std::string(__FUNCTION__)+", file: "+std::string(__FILE__)+":"+std::to_string(__LINE__)+")"); }
 dynamic assertion, throws an exception with the given message, when the given condition condition evaluates to false
 
#define JKQTPASSERT_M(condition, message)   { if (!(condition)) throw std::runtime_error(std::string(message)+" (expression: "+std::string(#condition)+", function: "+std::string(__FUNCTION__)+", file: "+std::string(__FILE__)+":"+std::to_string(__LINE__)+")"); }
 dynamic assertion, throws an exception with the given message, when the given condition condition evaluates to false
 

Detailed Description

Functions that help during debugging (e.g. an assert function/macro).

Macro Definition Documentation

◆ JKQTPASSERT

#define JKQTPASSERT (   condition)    { if (!(condition)) throw std::runtime_error("assertion failed (expression: "+std::string(#condition)+", function: "+std::string(__FUNCTION__)+", file: "+std::string(__FILE__)+":"+std::to_string(__LINE__)+")"); }

dynamic assertion, throws an exception with the given message, when the given condition condition evaluates to false

◆ JKQTPASSERT_M

#define JKQTPASSERT_M (   condition,
  message 
)    { if (!(condition)) throw std::runtime_error(std::string(message)+" (expression: "+std::string(#condition)+", function: "+std::string(__FUNCTION__)+", file: "+std::string(__FILE__)+":"+std::to_string(__LINE__)+")"); }

dynamic assertion, throws an exception with the given message, when the given condition condition evaluates to false