pxd return value
parent
2c52928d57
commit
86405dbb48
|
@ -68,4 +68,17 @@ void ReturnValue::emit_matlab(FileWriter& proxyFile) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
void ReturnValue::emit_cython_pxd(FileWriter& file) const {
|
||||||
|
string output;
|
||||||
|
if (isPair) {
|
||||||
|
file.oss << "pair[";
|
||||||
|
type1.emit_cython_pxd(file);
|
||||||
|
file.oss << ",";
|
||||||
|
type1.emit_cython_pxd(file);
|
||||||
|
"] ";
|
||||||
|
}
|
||||||
|
else type1.emit_cython_pxd(file);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ************************************************************************* */
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,8 @@ struct ReturnValue {
|
||||||
|
|
||||||
void emit_matlab(FileWriter& proxyFile) const;
|
void emit_matlab(FileWriter& proxyFile) const;
|
||||||
|
|
||||||
|
void emit_cython_pxd(FileWriter& file) const;
|
||||||
|
|
||||||
friend std::ostream& operator<<(std::ostream& os, const ReturnValue& r) {
|
friend std::ostream& operator<<(std::ostream& os, const ReturnValue& r) {
|
||||||
if (!r.isPair && r.type1.category == ReturnType::VOID)
|
if (!r.isPair && r.type1.category == ReturnType::VOID)
|
||||||
os << "void";
|
os << "void";
|
||||||
|
|
Loading…
Reference in New Issue