byteman  1.3 (Build #225)
Bitstream relocation and manipulation tool
Macros
assert.h File Reference
#include <stdexcept>
Include dependency graph for assert.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define throwingAssert(left, operator, right)   {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)) ); }}
 
#define throwingAssertPrintVar_1(left, operator, right, var1)   {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)).append("\n\t\t").append(#var1).append(" = ").append(std::to_string(var1)) ); }}
 
#define throwingAssertPrintVar_2(left, operator, right, var1, var2)   {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)).append("\n\t\t").append(#var1).append(" = ").append(std::to_string(var1)).append("\n\t\t").append(#var2).append(" = ").append(std::to_string(var2)) ); }}
 
#define throwingAssertPrintVar_3(left, operator, right, var1, var2, var3)   {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)).append("\n\t\t").append(#var1).append(" = ").append(std::to_string(var1)).append("\n\t\t").append(#var2).append(" = ").append(std::to_string(var2)).append("\n\t\t").append(#var3).append(" = ").append(std::to_string(var3)) ); }}
 
#define throwingAssertPrintVar_4(left, operator, right, var1, var2, var3, var4)   {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)).append("\n\t\t").append(#var1).append(" = ").append(std::to_string(var1)).append("\n\t\t").append(#var2).append(" = ").append(std::to_string(var2)).append("\n\t\t").append(#var3).append(" = ").append(std::to_string(var3)).append("\n\t\t").append(#var4).append(" = ").append(std::to_string(var4)) ); }}
 
#define throwingAssertPrintVar_5(left, operator, right, var1, var2, var3, var4, var5)   {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)).append("\n\t\t").append(#var1).append(" = ").append(std::to_string(var1)).append("\n\t\t").append(#var2).append(" = ").append(std::to_string(var2)).append("\n\t\t").append(#var3).append(" = ").append(std::to_string(var3)).append("\n\t\t").append(#var4).append(" = ").append(std::to_string(var4)).append("\n\t\t").append(#var5).append(" = ").append(std::to_string(var5)) ); }}
 

Macro Definition Documentation

◆ throwingAssert

#define throwingAssert (   left,
  operator,
  right 
)    {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)) ); }}

Definition at line 32 of file assert.h.

◆ throwingAssertPrintVar_1

#define throwingAssertPrintVar_1 (   left,
  operator,
  right,
  var1 
)    {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)).append("\n\t\t").append(#var1).append(" = ").append(std::to_string(var1)) ); }}

Definition at line 33 of file assert.h.

◆ throwingAssertPrintVar_2

#define throwingAssertPrintVar_2 (   left,
  operator,
  right,
  var1,
  var2 
)    {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)).append("\n\t\t").append(#var1).append(" = ").append(std::to_string(var1)).append("\n\t\t").append(#var2).append(" = ").append(std::to_string(var2)) ); }}

Definition at line 34 of file assert.h.

◆ throwingAssertPrintVar_3

#define throwingAssertPrintVar_3 (   left,
  operator,
  right,
  var1,
  var2,
  var3 
)    {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)).append("\n\t\t").append(#var1).append(" = ").append(std::to_string(var1)).append("\n\t\t").append(#var2).append(" = ").append(std::to_string(var2)).append("\n\t\t").append(#var3).append(" = ").append(std::to_string(var3)) ); }}

Definition at line 35 of file assert.h.

◆ throwingAssertPrintVar_4

#define throwingAssertPrintVar_4 (   left,
  operator,
  right,
  var1,
  var2,
  var3,
  var4 
)    {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)).append("\n\t\t").append(#var1).append(" = ").append(std::to_string(var1)).append("\n\t\t").append(#var2).append(" = ").append(std::to_string(var2)).append("\n\t\t").append(#var3).append(" = ").append(std::to_string(var3)).append("\n\t\t").append(#var4).append(" = ").append(std::to_string(var4)) ); }}

Definition at line 36 of file assert.h.

◆ throwingAssertPrintVar_5

#define throwingAssertPrintVar_5 (   left,
  operator,
  right,
  var1,
  var2,
  var3,
  var4,
  var5 
)    {if(!((left) operator (right))){ throw std::runtime_error(std::string("Assertion failed in ").append(__FILE__).append(":").append(std::to_string(__LINE__)).append(":\n\tassert(").append(#left).append(" ").append(#operator).append(" ").append(#right).append(")\n\twith variable values:\n\t\t").append(#left).append(" = ").append(std::to_string(left)).append("\n\t\t").append(#right).append(" = ").append(std::to_string(right)).append("\n\t\t").append(#var1).append(" = ").append(std::to_string(var1)).append("\n\t\t").append(#var2).append(" = ").append(std::to_string(var2)).append("\n\t\t").append(#var3).append(" = ").append(std::to_string(var3)).append("\n\t\t").append(#var4).append(" = ").append(std::to_string(var4)).append("\n\t\t").append(#var5).append(" = ").append(std::to_string(var5)) ); }}

Definition at line 37 of file assert.h.