Get rid of side effect inside assert macro