diff liboctave/oct-inttypes.h @ 5900:c20eb7330d13

[project @ 2006-07-22 08:31:16 by jwe]
author jwe
date Sat, 22 Jul 2006 08:31:17 +0000
parents da843f35775c
children 143b556ce725
line wrap: on
line diff
--- a/liboctave/oct-inttypes.h	Wed Jul 19 23:00:22 2006 +0000
+++ b/liboctave/oct-inttypes.h	Sat Jul 22 08:31:17 2006 +0000
@@ -309,6 +309,10 @@
 
   static int byte_size (void) { return sizeof(T); }
 
+  // Unsafe.  This function exists to support the MEX interface.
+  // You should not use it anywhere else.
+  void *mex_get_data (void) const { return const_cast<T *> (&ival); }
+
 private:
 
   T ival;