summaryrefslogtreecommitdiffstats
path: root/matlab
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2019-07-08 18:52:30 +0200
committerWillem Jan Palenstijn <wjp@usecode.org>2019-07-08 18:52:30 +0200
commit52456fe847252b764b07051323892fa8ce7df298 (patch)
tree5504ea206b0187d91d71833409e57394766afcf6 /matlab
parent92b10f955e962f9c8fc25e013304eb6b9b3bf012 (diff)
downloadastra-52456fe847252b764b07051323892fa8ce7df298.tar.gz
astra-52456fe847252b764b07051323892fa8ce7df298.tar.bz2
astra-52456fe847252b764b07051323892fa8ce7df298.tar.xz
astra-52456fe847252b764b07051323892fa8ce7df298.zip
Update matlab function signature
The previous one was an undocumented educated guess.
Diffstat (limited to 'matlab')
-rw-r--r--matlab/mex/mexDataManagerHelpFunctions.cpp4
1 files 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 <http://www.gnu.org/licenses/>.
#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<mxArray*>(_pArray), false);
+ mxUnshareArray(const_cast<mxArray*>(_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