asserts asserts

duplicated the assert logic for release mode, not knowing whether or not
there were any side effects in the code, since C++ code is inscrutable
by nature

Ron