mexErrMsgTxt.cpp 259 B

12345678910111213
  1. #include "mexErrMsgTxt.h"
  2. // Overload mexErrMsgTxt to check an assertion then print text only if
  3. // assertion fails
  4. #include "mex.h"
  5. IGL_INLINE void igl::mexErrMsgTxt(bool assertion, const char * text)
  6. {
  7. if(!assertion)
  8. {
  9. ::mexErrMsgTxt(text);
  10. }
  11. }