Graphical (or textual) assertion utility. More...
#include <config.h>
#include <cassert>
Go to the source code of this file.
Namespaces | |
namespace | util |
Various utility classes for generic programming. | |
Defines | |
#define | vvassert(expr) |
If NDEBUG is not defined and expr is false, warn the user of the program of the failed assertion. | |
#define | vvassert_msg(expr, msg) |
Functions | |
void | util::__assert_fail (const QString &assertion, const char *file, unsigned int line, const char *function) |
void | util::__assert_fail_txt (const QString &assertion, const char *file, unsigned int line, const char *function) |
Graphical (or textual) assertion utility.
Define the macro vvassert(expr)
Definition in file assert.h.
#define vvassert | ( | expr | ) |
((expr) \ ? static_cast<void>(0) \ : util::__assert_fail(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__))
If NDEBUG is not defined and expr is false, warn the user of the program of the failed assertion.
If TEXT_VVASSERT is defined, vvassert falls back onto the default assert function, otherwise, it shows a Qt message box with the assert message, then abort the program.
Definition at line 40 of file assert.h.
Referenced by vvcomplex::VVComplexGraph< RESOLVE_LEAF_CLASS(LeafClass, Tissue< ALL_COMPLEX_TEMPLATE_ARGS >), JunctionContent, graph::_EmptyEdgeContent, graph::_EmptyEdgeContent, false >::adjacentCells(), algorithms::TriangleSurface::position(), and graph::Vertex< VertexContent >::Vertex().