sharedfuncs.cpp
/* Asks the MATLAB interpreter if the object isa subclass of voidptr.
   This includes null pointers and things not descended from object.
 */
Asks the MATLAB interpreter if the object isa subclass of voidptr.
This includes null pointers and things not descended from object.
Asks the MATLAB interpreter if the object isa subclass of voidptr . This includes null pointers and things not descended from object .
bool mxIsPyObject(const mxArray *mxobj) {
  mxArray *boolobj;
  mxArray *args[2];
  args[0] = (mxArray *) mxobj;
  args[1] = mxCreateString(PYMEX_MATLAB_VOIDPTR);
  mexCallMATLABWithTrap(1,&boolobj,2,args,"isa");
  mxDestroyArray(args[1]);
  return mxIsLogicalScalarTrue(boolobj);
}
bool mxIsPyObject ( const mxArray * mxobj ) { mxArray * boolobj ; mxArray * args [ 2 ] ; args [ 0 ] = ( mxArray * ) mxobj ; args [ 1 ] = mxCreateString ( PYMEX_MATLAB_VOIDPTR ) ; mexCallMATLABWithTrap ( 1 , & boolobj , 2 , args , " " ) ; mxDestroyArray ( args [ 1 ] ) ; return mxIsLogicalScalarTrue ( boolobj ) ; }
Asks the MATLAB interpreter if the object isa subclass of voidptr.
Asks the MATLAB interpreter if the object isa subclass of voidptr .