assertOp

Assert on a generic operation

This is a generic assert based on an operation between two arguments. This function's advantage over merely asserting with the operation is that, in case of assert failure, both values compared are printed in addition to the assert message.

If asserts are disabled, this function compiles away to nothing.

nothrow
void
assertOp
(
string op
L
R
string file = __FILE_FULL_PATH__
string mod = __MODULE__
size_t line = __LINE__
)
(
L lhs
,
R rhs
,
scope lazy string msg = ""
)

Meta