di 0.1.0
Loading...
Searching...
No Matches
assert_binary.h File Reference

Go to the source code of this file.

Namespaces

namespace  di
 
namespace  di::assert
 

Macros

#define DI_ASSERT_EQ(a, b)
 
#define DI_ASSERT_APPROX_EQ(a, b)
 
#define DI_ASSERT_NOT_EQ(a, b)
 
#define DI_ASSERT_LT(a, b)
 
#define DI_ASSERT_LT_EQ(a, b)
 
#define DI_ASSERT_GT(a, b)
 
#define DI_ASSERT_GT_EQ(a, b)
 
#define ASSERT_EQ   DI_ASSERT_EQ
 
#define ASSERT_APPROX_EQ   DI_ASSERT_APPROX_EQ
 
#define ASSERT_NOT_EQ   DI_ASSERT_NOT_EQ
 
#define ASSERT_LT   DI_ASSERT_LT
 
#define ASSERT_LT_EQ   DI_ASSERT_LT_EQ
 
#define ASSERT_GT   DI_ASSERT_GT
 
#define ASSERT_GT_EQ   DI_ASSERT_GT_EQ
 

Macro Definition Documentation

◆ ASSERT_APPROX_EQ

#define ASSERT_APPROX_EQ   DI_ASSERT_APPROX_EQ

◆ ASSERT_EQ

#define ASSERT_EQ   DI_ASSERT_EQ

◆ ASSERT_GT

#define ASSERT_GT   DI_ASSERT_GT

◆ ASSERT_GT_EQ

#define ASSERT_GT_EQ   DI_ASSERT_GT_EQ

◆ ASSERT_LT

#define ASSERT_LT   DI_ASSERT_LT

◆ ASSERT_LT_EQ

#define ASSERT_LT_EQ   DI_ASSERT_LT_EQ

◆ ASSERT_NOT_EQ

#define ASSERT_NOT_EQ   DI_ASSERT_NOT_EQ

◆ DI_ASSERT_APPROX_EQ

#define DI_ASSERT_APPROX_EQ ( a,
b )
Value:
::di::assert::detail::binary_assert(::di::approximately_equal, "" #a " ~= " #b, (a), (b), \
static consteval auto current(char const *file_name=__builtin_FILE(), char const *function_name=__builtin_FUNCTION(), unsigned int line=__builtin_LINE(), unsigned int column=__builtin_COLUMN()) -> SourceLocation
Definition source_location.h:12
constexpr auto approximately_equal
Definition functions.h:232

◆ DI_ASSERT_EQ

#define DI_ASSERT_EQ ( a,
b )
Value:
::di::assert::detail::binary_assert(::di::function::equal, "" #a " == " #b, (a), (b), \
constexpr auto equal
Definition equal.h:23

◆ DI_ASSERT_GT

#define DI_ASSERT_GT ( a,
b )
Value:
::di::assert::detail::binary_assert(::di::function::greater, "" #a " > " #b, (a), (b), \
constexpr auto greater
Definition greater.h:23

◆ DI_ASSERT_GT_EQ

#define DI_ASSERT_GT_EQ ( a,
b )
Value:
::di::assert::detail::binary_assert(::di::function::equal_or_greater, "" #a " >= " #b, (a), (b), \
constexpr auto equal_or_greater
Definition equal_or_greater.h:23

◆ DI_ASSERT_LT

#define DI_ASSERT_LT ( a,
b )
Value:
::di::assert::detail::binary_assert(::di::function::less, "" #a " < " #b, (a), (b), \
constexpr auto less
Definition less.h:23

◆ DI_ASSERT_LT_EQ

#define DI_ASSERT_LT_EQ ( a,
b )
Value:
::di::assert::detail::binary_assert(::di::function::equal_or_less, "" #a " <= " #b, (a), (b), \
constexpr auto equal_or_less
Definition equal_or_less.h:23

◆ DI_ASSERT_NOT_EQ

#define DI_ASSERT_NOT_EQ ( a,
b )
Value:
::di::assert::detail::binary_assert(::di::function::not_equal, "" #a " != " #b, (a), (b), \
constexpr auto not_equal
Definition not_equal.h:23