Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
feelassert.hpp File Reference
#include <feel/feelcore/smartassert.hpp>

Go to the source code of this file.

Macros

#define ASSERT0(X, A)
 
#define ASSERT_BD0(X)
 
#define ASSERT_INV0(X, A)
 
#define ASSERT_POS0(X, A)
 
#define ASSERT_PRE0(X, A)
 
#define ERROR_MSG(A)   do { std::cerr << std::endl << std::endl << A << std::endl << std::endl ; ABORT() ; } while (0)
 

Detailed Description

Macro Definition Documentation

#define ASSERT0 (   X,
 
)
Value:
if ( !(X) ) \
ERROR_MSG(A << std::endl << "Error in file" << __FILE__ << " line " << __LINE__) ;
#define ASSERT_BD0 (   X)
Value:
if ( !(X) ) \
ERROR_MSG("Array bound error " << "in file " << __FILE__ \
<< " line " << __LINE__) ;
#define ASSERT_INV0 (   X,
 
)
Value:
if ( !(X) ) \
ERROR_MSG(A <<std::endl << "Invariant Error " << "in file " << __FILE__ \
<< " line " << __LINE__) ;
#define ASSERT_POS0 (   X,
 
)
Value:
if ( !(X) ) \
ERROR_MSG(A << std::endl <<"Postcondition Error " << "in file " << __FILE__ \
<< " line " << __LINE__) ;
#define ASSERT_PRE0 (   X,
 
)
Value:
if ( !(X) ) \
ERROR_MSG(A << std::endl << "Precondition Error " << "in file " << __FILE__ \
<< " line " << __LINE__) ;

Generated on Sun Dec 22 2013 13:11:15 for Feel++ by doxygen 1.8.5