Macros for performing relation checks. More...
Runtime Relation Checks | |
| #define | TTS_BIT_EQUAL(LHS, RHS, ...) |
| Performs equality comparison between the bits of two expressions. | |
| #define | TTS_BIT_NOT_EQUAL(LHS, RHS, ...) |
| Performs inequality comparison between the bits of two expressions. | |
| #define | TTS_EQUAL(LHS, RHS, ...) |
| Performs equality comparison between two expressions. | |
| #define | TTS_NOT_EQUAL(LHS, RHS, ...) |
| Performs inequality comparison between two expressions. | |
| #define | TTS_LESS(LHS, RHS, ...) |
| Performs less-than comparison between two expressions. | |
| #define | TTS_GREATER(LHS, RHS, ...) |
| Performs greater-than comparison between two expressions. | |
| #define | TTS_LESS_EQUAL(LHS, RHS, ...) |
| Performs less-or-equal-than comparison between two expressions. | |
| #define | TTS_GREATER_EQUAL(LHS, RHS, ...) |
| Performs greater-or-equal-than comparison between two expressions. | |
Runtime Typed Relation Checks | |
| #define | TTS_TYPED_EQUAL(LHS, RHS, ...) |
| Performs type and equality comparison between two expressions. | |
| #define | TTS_TYPED_NOT_EQUAL(LHS, RHS, ...) |
| Performs type and equality comparison between two expressions. | |
| #define | TTS_TYPED_LESS(LHS, RHS, ...) |
| Performs type and equality comparison between two expressions. | |
| #define | TTS_TYPED_GREATER(LHS, RHS, ...) |
| Performs type and equality comparison between two expressions. | |
| #define | TTS_TYPED_LESS_EQUAL(LHS, RHS, ...) |
| Performs type and equality comparison between two expressions. | |
| #define | TTS_TYPED_GREATER_EQUAL(LHS, RHS, ...) |
| Performs type and equality comparison between two expressions. | |
Constexpr Relation Checks | |
| #define | TTS_CONSTEXPR_EQUAL(LHS, RHS, ...) |
| Performs equality comparison between two expressions at compile-time. | |
| #define | TTS_CONSTEXPR_NOT_EQUAL(LHS, RHS, ...) |
| Performs inequality comparison between two expressions at compile-time. | |
| #define | TTS_CONSTEXPR_LESS(LHS, RHS, ...) |
| Performs less-than comparison between two expressions at compile-time. | |
| #define | TTS_CONSTEXPR_GREATER(LHS, RHS, ...) |
| Performs greater-than comparison between two expressions at compile-time. | |
| #define | TTS_CONSTEXPR_LESS_EQUAL(LHS, RHS, ...) |
| Performs less-or-equal-than comparison between two expressions at compile-time. | |
| #define | TTS_CONSTEXPR_GREATER_EQUAL(LHS, RHS, ...) |
| Performs greater-or-equal-than comparison between two expressions at compile-time. | |
| #define TTS_BIT_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs equality comparison between the bits of two expressions.
This comparison is performed by using memcmp on the underlying representation of both expressions.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_BIT_NOT_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs inequality comparison between the bits of two expressions.
This comparison is performed by using memcmp on the underlying representation of both expressions.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_CONSTEXPR_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs equality comparison between two expressions at compile-time.
This comparison is performed by using the proper operator== overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_CONSTEXPR_GREATER | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs greater-than comparison between two expressions at compile-time.
This comparison is performed by using the proper operator< overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_CONSTEXPR_GREATER_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs greater-or-equal-than comparison between two expressions at compile-time.
This comparison is performed by using the proper operator< overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_CONSTEXPR_LESS | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs less-than comparison between two expressions at compile-time.
This comparison is performed by using the proper operator< overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_CONSTEXPR_LESS_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs less-or-equal-than comparison between two expressions at compile-time.
This comparison is performed by using the proper operator< overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_CONSTEXPR_NOT_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs inequality comparison between two expressions at compile-time.
This comparison is performed by using the proper operator== overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs equality comparison between two expressions.
This comparison is performed by using the proper operator== overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_GREATER | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs greater-than comparison between two expressions.
This comparison is performed by using the proper operator< overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_GREATER_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs greater-or-equal-than comparison between two expressions.
This comparison is performed by using the proper operator< overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_LESS | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs less-than comparison between two expressions.
This comparison is performed by using the proper operator< overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_LESS_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs less-or-equal-than comparison between two expressions.
This comparison is performed by using the proper operator< overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_NOT_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs inequality comparison between two expressions.
This comparison is performed by using the proper operator== overload or by a custom comparison.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_TYPED_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs type and equality comparison between two expressions.
This test behaves as TTS_EQUAL but also verify that both arguments's types are the same.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_TYPED_GREATER | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs type and equality comparison between two expressions.
This test behaves as TTS_GREATER but also verify that both arguments's types are the same.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_TYPED_GREATER_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs type and equality comparison between two expressions.
This test behaves as TTS_GREATER_EQUAL but also verify that both arguments's types are the same.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_TYPED_LESS | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs type and equality comparison between two expressions.
This test behaves as TTS_LESS but also verify that both arguments's types are the same.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_TYPED_LESS_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs type and equality comparison between two expressions.
This test behaves as TTS_LESS_EQUAL but also verify that both arguments's types are the same.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_TYPED_NOT_EQUAL | ( | LHS, | |
| RHS, | |||
| ... | |||
| ) |
#include <tts/test/relation.hpp>
Performs type and equality comparison between two expressions.
This test behaves as TTS_NOT_EQUAL but also verify that both arguments's types are the same.
| LHS,RHS | Expressions to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |