It is purely a way to make throwing an exception use a syntax similar to assert and save a line of code.if(!condition) throw new Exception(msg);becomes enforce(condition, msg);
So enforce is just macros on top of:
if(!condition)
throw new Exception(msg);
?
