浏览代码

Use the USELIB_MEX defines

Clemens-Alexander Brust 11 年之前
父节点
当前提交
2ecd7caad8

+ 2 - 0
matlab/ConverterMatlabToNICE.cpp

@@ -1,3 +1,4 @@
+#ifdef NICE_USELIB_MEX
 
 #include "ConverterMatlabToNICE.h"
 
@@ -232,3 +233,4 @@ bool MatlabConversion::convertMatlabToBool( const mxArray *matlabBool )
   bool* ptr = (bool*) mxGetData( matlabBool );
   return ptr[0];
 }
+#endif

+ 2 - 0
matlab/ConverterMatlabToNICE.h

@@ -1,3 +1,4 @@
+#ifdef NICE_USELIB_MEX
 /** 
 * @file ConverterMatlabToNICE.h
 * @author Alexander Freytag
@@ -96,3 +97,4 @@ namespace NICE {
 }
 
 #endif
+#endif

+ 2 - 0
matlab/ConverterNICEToMatlab.cpp

@@ -1,3 +1,4 @@
+#ifdef NICE_USELIB_MEX
 
 #include "ConverterNICEToMatlab.h"
 
@@ -68,3 +69,4 @@ mxArray* MatlabConversion::convertVectorFromNice( const NICE::Vector & niceVecto
   }
   return matlabVector;
 }
+#endif

+ 2 - 0
matlab/ConverterNICEToMatlab.h

@@ -1,3 +1,4 @@
+#ifdef NICE_USELIB_MEX
 /** 
 * @file ConverterNICEToMatlab.h
 * @author Alexander Freytag
@@ -60,3 +61,4 @@ namespace MatlabConversion {
 }
 
 #endif
+#endif

+ 2 - 0
matlab/GPHIKClassifierMex.cpp

@@ -1,3 +1,4 @@
+#ifdef NICE_USELIB_MEX
 /** 
 * @file GPHIKClassifierMex.cpp
 * @author Alexander Freytag
@@ -723,3 +724,4 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
     mexErrMsgTxt( errorMsg.c_str() );
 
 }
+#endif

+ 2 - 0
matlab/GPHIKRegressionMex.cpp

@@ -1,3 +1,4 @@
+#ifdef NICE_USELIB_MEX
 /** 
 * @file GPHIKRegressionMex.cpp
 * @author Alexander Freytag
@@ -673,3 +674,4 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
     mexErrMsgTxt( errorMsg.c_str() );
 
 }
+#endif

+ 2 - 0
matlab/classHandleMtoC.h

@@ -1,3 +1,4 @@
+#ifdef NICE_USELIB_MEX
 /** 
 * @file classHandleMtoC.h
 * @brief Generic class to pass C++ objects to matlab (Interface and inline implementations)
@@ -149,3 +150,4 @@ template<class objectClass> inline void destroyObject(const mxArray *in)
 }
 
 #endif // _NICE_CLASSHANDLEMTOCINCLUDE
+#endif

+ 2 - 0
matlab/testMatlabConversionFunctionsMex.cpp

@@ -1,3 +1,4 @@
+#ifdef NICE_USELIB_MEX
 /** 
 * @file GPHIKClassifierMex.cpp
 * @author Alexander Freytag
@@ -135,3 +136,4 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
     mexErrMsgTxt( errorMsg.c_str() );
 
 }
+#endif