LifeV
LifeAssert.hpp File Reference

Assert macros for LifeV. More...

+ Include dependency graph for LifeAssert.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ABORT()   std::abort()
 
#define ERROR_MSG(A)   LIFEV_ASSERT( 0 ).error( A );
 
#define RETURN_UNDEFINED   ERROR_MSG("undefined return"); return 0;
 
#define ASSERT0(X, A)   LIFEV_ASSERT( X ).error( A );
 
#define ASSERT_PRE0(X, A)   LIFEV_ASSERT( X ).error( "Precondition Error" );
 
#define ASSERT_POS0(X, A)   LIFEV_ASSERT( X ).error( "Postcondition Error" );
 
#define ASSERT_INV0(X, A)   LIFEV_ASSERT( X ).error( "Invariant Error : " );
 
#define ASSERT_BD0(X)   LIFEV_ASSERT( X ).error( "Array bounds error" );
 
#define ASSERT(X, A)
 
#define ASSERT_PRE(X, A)
 
#define ASSERT_POS(X, A)
 
#define ASSERT_INV(X, A)
 
#define ASSERT_BD(X)
 

Detailed Description

Assert macros for LifeV.

Date
19-02-2005
Author
Christophe Prud'homme chris.nosp@m.toph.nosp@m.e.pru.nosp@m.dhom.nosp@m.me@ep.nosp@m.fl.c.nosp@m.h
Maintainer:
Radu Popescu radu..nosp@m.pope.nosp@m.scu@e.nosp@m.pfl..nosp@m.ch

Definition in file LifeAssert.hpp.

Macro Definition Documentation

◆ ABORT

#define ABORT ( )    std::abort()

Definition at line 67 of file LifeAssert.hpp.

◆ ERROR_MSG

#define ERROR_MSG (   A)    LIFEV_ASSERT( 0 ).error( A );

Definition at line 69 of file LifeAssert.hpp.

◆ RETURN_UNDEFINED

#define RETURN_UNDEFINED   ERROR_MSG("undefined return"); return 0;

Definition at line 70 of file LifeAssert.hpp.

◆ ASSERT0

#define ASSERT0 (   X,
 
)    LIFEV_ASSERT( X ).error( A );

Definition at line 71 of file LifeAssert.hpp.

◆ ASSERT_PRE0

#define ASSERT_PRE0 (   X,
 
)    LIFEV_ASSERT( X ).error( "Precondition Error" );

Definition at line 72 of file LifeAssert.hpp.

◆ ASSERT_POS0

#define ASSERT_POS0 (   X,
 
)    LIFEV_ASSERT( X ).error( "Postcondition Error" );

Definition at line 73 of file LifeAssert.hpp.

◆ ASSERT_INV0

#define ASSERT_INV0 (   X,
 
)    LIFEV_ASSERT( X ).error( "Invariant Error : " );

Definition at line 74 of file LifeAssert.hpp.

◆ ASSERT_BD0

#define ASSERT_BD0 (   X)    LIFEV_ASSERT( X ).error( "Array bounds error" );

Definition at line 75 of file LifeAssert.hpp.

◆ ASSERT

#define ASSERT (   X,
 
)

Definition at line 90 of file LifeAssert.hpp.

◆ ASSERT_PRE

#define ASSERT_PRE (   X,
 
)

Definition at line 96 of file LifeAssert.hpp.

◆ ASSERT_POS

#define ASSERT_POS (   X,
 
)

Definition at line 102 of file LifeAssert.hpp.

◆ ASSERT_INV

#define ASSERT_INV (   X,
 
)

Definition at line 108 of file LifeAssert.hpp.

◆ ASSERT_BD

#define ASSERT_BD (   X)

Definition at line 114 of file LifeAssert.hpp.