diff src/ov-re-mat.h @ 9358:d4b1314a7c31

mex.cc (mxArray_octave_value::get_data): avoid enumerating types that can be handled as foreign
author John W. Eaton <jwe@octave.org>
date Wed, 17 Jun 2009 21:11:41 -0400
parents e2344f4af0cb
children d9716e3ee0dd
line wrap: on
line diff
--- a/src/ov-re-mat.h	Wed Jun 17 18:49:46 2009 -0400
+++ b/src/ov-re-mat.h	Wed Jun 17 21:11:41 2009 -0400
@@ -199,6 +199,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;
 
   octave_value erf (void) const;