SyTen

◆ SYTEN_MPS_EXPECT_ORDER

#define SYTEN_MPS_EXPECT_ORDER (   a,
  b,
  c,
 
)
Value:
{ \
static_assert(a == 1, f " expects " #a " to be 1"); \
static_assert(b == 2, f " expects " #b " to be 2"); \
static_assert(c == 3, f " expects " #c " to be 3"); \
}

Asserts that the supplied macro arguments a, b and c are 1 through 3 with the calling funcation named as f.

Example usage: SYTEN_MPO_EXPECT_ORDER(State::uIdx, State::lIdx, State::rIdx, "myfun") to ensure that nobody changes index ordering from below you.