sharedfuncs.cpp
/* TODO: Low priority, but this depends on libmex. If we try to make an
   external module later, this will need to function to some extent.
   It could operate at low capability by using a hardcoded list for
   the builtins and assuming that anything else has _object as a super.
 */
Low priority, but this depends on libmex. If we try to make an
external module later, this will need to function to some extent.
It could operate at low capability by using a hardcoded list for
the builtins and assuming that anything else has _object as a super.
Low priority but this depends on libmex . If we try to make an external module later this will need to function to some extent . It could operate at low capability by using a hardcoded list for the builtins and assuming that anything else has _object as a super .
PyObject *Calculate_matlab_mro(mxArray *mxobj) {
  mxArray *argin[3];
  argin[0] = mxobj;
  argin[1] = mxCreateLogicalScalar(1); 
  argin[2] = mxCreateLogicalScalar(1); 
  mxArray *argout[1] = {NULL};
  mxArray *err = mexCallMATLABWithTrap(1, argout, 3, argin, "mro");
  if (err) return PyObject_CallMethod(mexmodule, "__raiselasterror", "()");
  else {
    PyObject *retval = mxCell_to_PyTuple_recursive(argout[0]);
    mxDestroyArray(argout[0]);
    mxDestroyArray(argin[1]);
    mxDestroyArray(argin[2]);
    return retval;
  }
}
PyObject * Calculate_matlab_mro ( mxArray * mxobj ) { mxArray * argin [ 3 ] ; argin [ 0 ] = mxobj ; argin [ 1 ] = mxCreateLogicalScalar ( 1 ) ; argin [ 2 ] = mxCreateLogicalScalar ( 1 ) ; mxArray * argout [ 1 ] = { NULL } ; mxArray * err = mexCallMATLABWithTrap ( 1 , argout , 3 , argin , " " ) ; if ( err ) return PyObject_CallMethod ( mexmodule , " " , " " ) ; else { PyObject * retval = mxCell_to_PyTuple_recursive ( argout [ 0 ] ) ; mxDestroyArray ( argout [ 0 ] ) ; mxDestroyArray ( argin [ 1 ] ) ; mxDestroyArray ( argin [ 2 ] ) ; return retval ; } }
TODO: Low priority, but this depends on libmex.
TODO : Low priority but this depends on libmex .
/* addvirtual=true */ /* autosplit=true */