Iros
 
Loading...
Searching...
No Matches
assert_binary.h File Reference

Go to the source code of this file.

Namespaces

namespace  di
 
namespace  di::assert
 
namespace  di::assert::detail
 

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
 

Functions

template<typename T, typename U>
void di::assert::detail::binary_assert_fail (char const *expression, T &&a, U &&b, util::SourceLocation loc)
 
template<typename F, typename T, typename U>
constexpr void di::assert::detail::binary_assert (F op, char const *expression, T &&a, U &&b, util::SourceLocation loc)
 

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:
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 void binary_assert(F op, char const *expression, T &&a, U &&b, util::SourceLocation loc)
Definition assert_binary.h:48
constexpr auto approximately_equal
Definition functions.h:232

◆ DI_ASSERT_EQ

#define DI_ASSERT_EQ ( a,
b )
Value:
constexpr auto equal
Definition equal.h:23

◆ DI_ASSERT_GT

#define DI_ASSERT_GT ( a,
b )
Value:
constexpr auto greater
Definition greater.h:23

◆ DI_ASSERT_GT_EQ

#define DI_ASSERT_GT_EQ ( a,
b )
Value:
constexpr auto equal_or_greater
Definition equal_or_greater.h:23

◆ DI_ASSERT_LT

#define DI_ASSERT_LT ( a,
b )
Value:
constexpr auto less
Definition less.h:23

◆ DI_ASSERT_LT_EQ

#define DI_ASSERT_LT_EQ ( a,
b )
Value:
constexpr auto equal_or_less
Definition equal_or_less.h:23

◆ DI_ASSERT_NOT_EQ

#define DI_ASSERT_NOT_EQ ( a,
b )
Value:
constexpr auto not_equal
Definition not_equal.h:23