started MxArray wrapper around mxArray class

This commit is contained in:
hbristow
2013-06-28 19:48:42 -07:00
parent fc519aa3b3
commit 53c9c40eba
2 changed files with 434 additions and 114 deletions

View File

@@ -46,7 +46,7 @@ void mexFunction(int nlhs, mxArray* plhs[],
{%- if noutputs %}
// push the outputs back to matlab
for (size_t n = 0; n < nlhs; ++n) {
plhs[n] = outputs[n].toMxArray();
plhs[n] = outputs[n].toMxArray().releaseOwnership();
}
{% endif %}
}