Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
die.hpp File Reference
#include <tlx/die/core.hpp>
+ Include dependency graph for die.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 tlx
 

Macros

#define assert_equal(X, Y)   tlx_assert_equal(X, Y)
 
#define die(msg)   tlx_die(msg)
 Instead of std::terminate(), throw the output the message via an exception. More...
 
#define die_if(X)   tlx_die_if(X)
 
#define die_unequal(X, Y)   tlx_die_unequal(X, Y)
 
#define die_unequal_eps(X, Y, eps)   tlx_die_unequal_eps(X, Y, eps)
 
#define die_unequal_eps6(X, Y)   tlx_die_unequal_eps6(X, Y)
 
#define die_unless(X)   tlx_die_unless(X)
 
#define die_unless_throws(code, exception_type)   tlx_die_unless_throws(code, exception_type)
 Define to check that [code] throws and exception of given type. More...
 

Macro Definition Documentation

#define assert_equal (   X,
 
)    tlx_assert_equal(X, Y)

Check that X == Y or die miserably, but output the values of X and Y for better debugging. Only active if NDEBUG is not defined.

Definition at line 45 of file die.hpp.

Referenced by examples::suffix_sorting::DC7Recursive().

#define die (   msg)    tlx_die(msg)
#define die_if (   X)    tlx_die_if(X)

Check condition X and die miserably if true. Opposite of assert() except this is also active in Release mode.

Definition at line 32 of file die.hpp.

#define die_unequal (   X,
 
)    tlx_die_unequal(X, Y)

Check that X == Y or die miserably, but output the values of X and Y for better debugging.

Definition at line 40 of file die.hpp.

Referenced by Pool::AllocateFreeArena(), AsyncReadBuffer::DoCallback(), AsyncReadByteBlock::DoCallback(), main(), BlockPool::OnWriteComplete(), Pool::print(), Connection::SyncRecv(), and BlockPool::~BlockPool().

#define die_unequal_eps (   X,
  Y,
  eps 
)    tlx_die_unequal_eps(X, Y, eps)

Check that ABS(X - Y) <= eps or die miserably, but output the values of X and Y for better debugging.

Definition at line 53 of file die.hpp.

#define die_unequal_eps6 (   X,
 
)    tlx_die_unequal_eps6(X, Y)

Check that ABS(X - Y) <= 0.000001 or die miserably, but output the values of X and Y for better debugging.

Definition at line 58 of file die.hpp.

#define die_unless_throws (   code,
  exception_type 
)    tlx_die_unless_throws(code, exception_type)

Define to check that [code] throws and exception of given type.

Definition at line 65 of file die.hpp.