assert.h File Reference

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)

Detailed Description

Graphical (or textual) assertion utility.

Define the macro vvassert(expr)

Definition in file assert.h.


Define Documentation

#define vvassert ( expr   ) 
Value:
((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().

#define vvassert_msg ( expr,
msg   ) 
Value:
((expr) \
                            ? static_cast<void>(0) \
                            : util::__assert_fail(msg, __FILE__, __LINE__, __PRETTY_FUNCTION__))

Definition at line 43 of file assert.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Fri May 31 15:37:53 2013 for VVE by  doxygen 1.6.3