Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
die_with_message.hpp File Reference
#include <tlx/die.hpp>
+ Include dependency graph for die_with_message.hpp:

Go to the source code of this file.

Macros

#define die_with_message_if(X, msg)
 
#define die_with_message_unless(X, msg)
 

Macro Definition Documentation

#define die_with_message_if (   X,
  msg 
)
Value:
do { \
if ((X)) { \
"DIE: Assertion \"" #X "\" succeeded!\n " << msg << "\n" \
); \
} \
} while (false)
#define die_with_sstream(msg)
Instead of std::terminate(), throw the output the message via an exception.
Definition: die.hpp:34

Check condition X and die miserably if false. Same as die_if() except user additionally pass message

Definition at line 22 of file die_with_message.hpp.

#define die_with_message_unless (   X,
  msg 
)
Value:
do { \
if (!(X)) { \
"DIE: Assertion \"" #X "\" failed!\n " << msg << "\n" \
); \
} \
} while (false)
#define die_with_sstream(msg)
Instead of std::terminate(), throw the output the message via an exception.
Definition: die.hpp:34

Check condition X and die miserably if false. Same as die_unless() except user additionally pass message

Definition at line 33 of file die_with_message.hpp.