diff options
Diffstat (limited to 'cpp/src/slice2cs/Gen.cpp')
-rwxr-xr-x | cpp/src/slice2cs/Gen.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index 341d2d52489..93b926534e1 100755 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -3501,12 +3501,20 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p) _out << sp; _out << nl << "public void " << opName << "_async" << spar << paramsAMI << epar; _out << sb; - _out << nl << "cb__.invoke__" << spar << "this" << argsAMI << "null" << epar << ';'; + _out << nl << opName << "_async" << spar << argsAMI << "null" << "false" << epar << ';'; _out << eb; + _out << sp; _out << nl << "public void " << opName << "_async" << spar << paramsAMI << "Ice.Context ctx__" << epar; _out << sb; - _out << nl << "if(ctx__ == null)"; + _out << nl << opName << "_async" << spar << argsAMI << "ctx__" << "true" << epar << ';'; + _out << eb; + + _out << sp; + _out << nl << "public void " << opName << "_async" << spar << paramsAMI << "Ice.Context ctx__" + << "bool explicitContext__" << epar; + _out << sb; + _out << nl << "if(explicitContext__ && ctx__ == null)"; _out << sb; _out << nl << "ctx__ = emptyContext_;"; _out << eb; |