Răsfoiți Sursa

matlab 2018 uses strange macro, include first

Former-commit-id: 01ed8dedbb3d3f21a437ea756bb6ef8a6c80b249
Alec Jacobson 7 ani în urmă
părinte
comite
1fce942281
2 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 0 3
      include/igl/matlab/mexErrMsgTxt.cpp
  2. 3 0
      include/igl/matlab/mexErrMsgTxt.h

+ 0 - 3
include/igl/matlab/mexErrMsgTxt.cpp

@@ -7,9 +7,6 @@
 // obtain one at http://mozilla.org/MPL/2.0/.
 // obtain one at http://mozilla.org/MPL/2.0/.
 #include "mexErrMsgTxt.h"
 #include "mexErrMsgTxt.h"
 
 
-// Overload mexErrMsgTxt to check an assertion then print text only if
-// assertion fails
-#include "mex.h"
 IGL_INLINE void igl::matlab::mexErrMsgTxt(bool assertion, const char * text)
 IGL_INLINE void igl::matlab::mexErrMsgTxt(bool assertion, const char * text)
 {
 {
   if(!assertion)
   if(!assertion)

+ 3 - 0
include/igl/matlab/mexErrMsgTxt.h

@@ -8,6 +8,9 @@
 #ifndef IGL_MATLAB_MEXERRMSGTXT_H
 #ifndef IGL_MATLAB_MEXERRMSGTXT_H
 #define IGL_MATLAB_MEXERRMSGTXT_H
 #define IGL_MATLAB_MEXERRMSGTXT_H
 #include "../igl_inline.h"
 #include "../igl_inline.h"
+// Overload mexErrMsgTxt to check an assertion then print text only if
+// assertion fails
+#include "mex.h"
 namespace igl
 namespace igl
 {
 {
   namespace matlab
   namespace matlab