18 #define MF_ASSERT_MSG(condition, msg) \
20 MF_DEBUG_BACKTRACE("assertion failed: " msg); \
24 #define MF_ASSERT(condition) MF_ASSERT_MSG(condition, "`" #condition "`")
26 #define MF_EXPECTS_MSG(condition, msg) MF_ASSERT_MSG(condition, "precondition: " msg)
27 #define MF_EXPECTS(condition) MF_EXPECTS_MSG(condition, "`" #condition "`")
29 #define MF_ENSURES_MSG(condition, msg) MF_ASSERT_MSG(condition, "postcondition: " msg)
30 #define MF_ENSURES(condition) MF_EXPECTS_MSG(condition, "`" #condition "`")
34 #define MF_ASSERT_MSG(condition, msg) ((void)0)
35 #define MF_ASSERT(condition) ((void)0)
36 #define MF_EXPECTS(condition) ((void)0)
37 #define MF_EXPECTS_MSG(condition, msg) ((void)0)
38 #define MF_ENSURES(condition) ((void)0)
39 #define MF_ENSURES_MSG(condition, msg) ((void)0)
float real
Real number type.
Definition: common.h:48
std::ptrdiff_t time_unit
Discrete time unit type.
Definition: common.h:52
std::uint8_t byte
Single byte type.
Definition: common.h:56
time_unit start_time() const
Definition: common.h:70
time_span(time_unit start, time_unit end)
Definition: common.h:67
time_span(const base &span)
Definition: common.h:66
time_unit end_time() const
Definition: common.h:71
const coordinates_type & end_pos() const noexcept
Definition: ndspan.h:32
time_unit duration() const
Definition: common.h:72
Cuboid n-dimensional span delimited by two ndcoord vectors.
Definition: ndspan.h:15
std::size_t size() const
Definition: ndspan.h:47
One-dimensional time span.
Definition: common.h:61
const T & front() const noexcept
Definition: ndcoord.h:117
const coordinates_type & start_pos() const noexcept
Definition: ndspan.h:31
std::ostream & operator<<(std::ostream &str, const time_span &span)
Definition: common.h:76