comparison libinterp/corefcn/mex.cc @ 20562:2d9ec16fa960

Print error, rather than aborting, if mex function mxIsFromGlobalWS is used (bug #46070). * mex.cc (mxIsFromGlobalWS): Call mexErrMsgTxt rather than abort() in function.
author Rik <rik@octave.org>
date Tue, 29 Sep 2015 12:00:11 -0700
parents b9bd8786d310
children b70cc4bd8109
comparison
equal deleted inserted replaced
20561:ecca28364445 20562:2d9ec16fa960
2716 mxIsEmpty (const mxArray *ptr) 2716 mxIsEmpty (const mxArray *ptr)
2717 { 2717 {
2718 return ptr->is_empty (); 2718 return ptr->is_empty ();
2719 } 2719 }
2720 2720
2721 // Just plain odd thing to ask of a value. 2721 // FIXME: Just plain odd thing to ask of a value.
2722 int 2722 // Still, Octave is incompatible because it does not implement this.
2723 mxIsFromGlobalWS (const mxArray */*ptr*/) 2723 int
2724 { 2724 mxIsFromGlobalWS (const mxArray * /*ptr*/)
2725 // FIXME 2725 {
2726 abort (); 2726 mexErrMsgTxt ("mxIsFromGlobalWS() is unimplemented");
2727
2727 return 0; 2728 return 0;
2728 } 2729 }
2729 2730
2730 // Dimension extractors. 2731 // Dimension extractors.
2731 size_t 2732 size_t