Remove code duplication in myassert.h.