Feel++ 0.91.0
Defines

/build/buildd/feel++-0.91.0~svn7013/feel/feelcore/feelassert.hpp File Reference

#include <feel/feelcore/smartassert.hpp>

Defines

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

Detailed Description

Author:
Christophe Prud'homme <christophe.prudhomme@ujf-grenoble.fr>
Date:
2005-02-19

Define 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__) ;