Mercurial > hg > octave-nkf
diff src/ov-intx.h @ 11999:49affc56fac2 release-3-2-x
mex.cc (mxArray_octave_value::get_data): avoid enumerating types that can be handled as foreign
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 18 Jun 2009 07:09:17 +0200 |
parents | d865363208d6 |
children |
line wrap: on
line diff
--- a/src/ov-intx.h +++ b/src/ov-intx.h @@ -323,6 +323,10 @@ oct_mach_info::float_format flt_fmt) const { return os.write (matrix, block_size, output_type, skip, flt_fmt); } + // Unsafe. This function exists to support the MEX interface. + // You should not use it anywhere else. + void *mex_get_data (void) const { return matrix.mex_get_data (); } + mxArray *as_mxArray (void) const { mxArray *retval = new mxArray (OCTAVE_INT_MX_CLASS, dims (), mxREAL);