From 52456fe847252b764b07051323892fa8ce7df298 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Mon, 8 Jul 2019 18:52:30 +0200 Subject: Update matlab function signature The previous one was an undocumented educated guess. --- matlab/mex/mexDataManagerHelpFunctions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/mex/mexDataManagerHelpFunctions.cpp b/matlab/mex/mexDataManagerHelpFunctions.cpp index dc225ac..70d534c 100644 --- a/matlab/mex/mexDataManagerHelpFunctions.cpp +++ b/matlab/mex/mexDataManagerHelpFunctions.cpp @@ -39,7 +39,7 @@ along with the ASTRA Toolbox. If not, see . #ifdef USE_MATLAB_UNDOCUMENTED extern "C" { mxArray *mxCreateSharedDataCopy(const mxArray *pr); -bool mxUnshareArray(mxArray *pr, bool noDeepCopy); +int mxUnshareArray(mxArray *pr, int level); mxArray *mxUnreference(mxArray *pr); #if 0 // Unsupported in Matlab R2014b and later @@ -68,7 +68,7 @@ public: fprintf(stderr, "Performance note: unsharing shared array in link\n"); } #endif - mxUnshareArray(const_cast(_pArray), false); + mxUnshareArray(const_cast(_pArray), 0); //fprintf(stderr, "Unshared:\narray: %p\tdata: %p\n", (void*)_pArray, (void*)mxGetData(_pArray)); } // Then create a (persistent) copy so the data won't be deleted -- cgit v1.2.3