octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51725] Adding mxGetProperty to Matlab API


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #51725] Adding mxGetProperty to Matlab API
Date: Fri, 11 Aug 2017 17:39:01 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #6, bug #51725 (project octave):

AFAIK, Matlab just crashes if you send an invalid mxArray pointer to MEX
functions, so we are just being compatible.  ;-)  If that's changed, then
sure, then I suppose we could add checks too.

We don't really have any systematic tests for the MEX API yet.  Before we
start adding random tests for MEX functions, I think we should decide how
these tests should work more generally since they will require some functions
to be compiled separately from Octave.  It's easy to test Octave's internal
functions using Octave language code because all the Octave functions are
present in Octave.  But the MEX interface is not used anywhere in Octave
itself, so that means writing some compiled code to do the testing.  It's a
bit more work than adding new %!test blocks to mex.cc.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51725>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]