Dear Moses,
The assert macro is for programmer assertions that may be compiled
away to make releases. It is not for runtime checks such as file
existence. It should also have no side effect.
In order to allow proper use of assert and builds with -DNDEBUG to
work, I added a CHECK macro that always runs and my friend sed replaced
assert with CHECK. When you encounter a CHECK in the source code,
please replace it with assert (if it's correct to do so) or a runtime
error message. You might use UTIL_THROW_IF from util/exception.hh for
runtime errors but I'll let the list argue about it first.
This does not impact the scripts directory.
Kenneth
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support