format
parent
639854a6a0
commit
a18f11097c
|
@ -151,9 +151,11 @@ void MethodBase::emit_cython_pyx_function_call(FileWriter& file,
|
|||
returnVals_[iOverload].emit_cython_pyx_return_type(file);
|
||||
file.oss << " ret = ";
|
||||
}
|
||||
if (!returnVals_[iOverload].isPair && !returnVals_[iOverload].type1.isPtr && returnVals_[iOverload].type1.isNonBasicType())
|
||||
if (!returnVals_[iOverload].isPair && !returnVals_[iOverload].type1.isPtr &&
|
||||
returnVals_[iOverload].type1.isNonBasicType()) {
|
||||
file.oss << returnVals_[iOverload].type1.pyxSharedCythonClass() << "(new "
|
||||
<< returnVals_[iOverload].type1.pyxCythonClass() << "(";
|
||||
<< returnVals_[iOverload].type1.pyxCythonClass() << "(";
|
||||
}
|
||||
|
||||
//... function call
|
||||
file.oss << caller << "." << funcName;
|
||||
|
@ -162,7 +164,8 @@ void MethodBase::emit_cython_pyx_function_call(FileWriter& file,
|
|||
argumentList(iOverload).emit_cython_pyx_asParams(file);
|
||||
file.oss << ")";
|
||||
|
||||
if (!returnVals_[iOverload].isPair && !returnVals_[iOverload].type1.isPtr && returnVals_[iOverload].type1.isNonBasicType())
|
||||
if (!returnVals_[iOverload].isPair && !returnVals_[iOverload].type1.isPtr &&
|
||||
returnVals_[iOverload].type1.isNonBasicType())
|
||||
file.oss << "))";
|
||||
file.oss << "\n";
|
||||
|
||||
|
|
Loading…
Reference in New Issue