Use vim to replace asserts with mexErrMsgTxt
Alec Jacobson
December 31, 2012
weblog/
Snippet to find and replace appropriately:
%s/assert(\(.*\));/if(!(\1)) mexErrMsgTxt("\1");/g