Fixed wrap problem where a double could not be passed to a method taking a size_t. Also, if a method takes a bool, you now *have* to pass a logical in matlab (i.e., true or false)
parent
0b04e0273e
commit
d13db7a997
|
@ -32,8 +32,12 @@ string Argument::matlabClass(const string& delim) const {
|
|||
result += ns + delim;
|
||||
if (type=="string" || type=="unsigned char" || type=="char")
|
||||
return result + "char";
|
||||
if (type=="bool" || type=="int" || type=="size_t" || type=="Vector" || type=="Matrix")
|
||||
if (type=="Vector" || type=="Matrix")
|
||||
return result + "double";
|
||||
if (type=="int" || type=="size_t")
|
||||
return result + "numeric";
|
||||
if (type=="bool")
|
||||
return result + "logical";
|
||||
return result + type;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue