Feel++  0.91.4
Macros
feelassert.hpp File Reference
#include <feel/feelcore/smartassert.hpp>

Macros

#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 chris.nosp@m.toph.nosp@m.e.pru.nosp@m.dhom.nosp@m.me@uj.nosp@m.f-gr.nosp@m.enobl.nosp@m.e.fr
Date:
2005-02-19

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