diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-11-28 15:24:44 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-11-28 15:24:44 -0330 |
commit | bcb4381cf704e2a02d3caac73220b58ed8a3e468 (patch) | |
tree | 06c3400e86a27061d9f237f773818b6803303f30 /cpp/src/slice2sl/Gen.cpp | |
parent | Use IceC# 3.2.1.1 (diff) | |
download | ice-bcb4381cf704e2a02d3caac73220b58ed8a3e468.tar.bz2 ice-bcb4381cf704e2a02d3caac73220b58ed8a3e468.tar.xz ice-bcb4381cf704e2a02d3caac73220b58ed8a3e468.zip |
Use delegates for AMI
Diffstat (limited to 'cpp/src/slice2sl/Gen.cpp')
-rwxr-xr-x | cpp/src/slice2sl/Gen.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cpp/src/slice2sl/Gen.cpp b/cpp/src/slice2sl/Gen.cpp index 0a916daf8e4..1e4d480c423 100755 --- a/cpp/src/slice2sl/Gen.cpp +++ b/cpp/src/slice2sl/Gen.cpp @@ -3153,7 +3153,8 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) vector<string> paramsInvoke = getParamsAsync(p, false); - _out << nl << "public delegate void AMI_" << cl->name() << "_" << name << "_response" << spar << params << epar; + _out << nl << "public delegate void AMI_" << cl->name() << "_" << name << "_response" << spar << params + << epar << ";"; _out << nl << "public delegate void AMI_" << cl->name() << "_" << name << "_exception(Ice.Exception ex);"; _out << sp << nl << "public class AMI_" << cl->name() << '_' @@ -3168,20 +3169,20 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) _out << nl << "exception_ = exception;"; _out << eb; _out << nl; - _out << nl << "public AMI_" << cl->name() << "_" << name << "();"; + _out << nl << "public AMI_" << cl->name() << "_" << name << "()"; _out << sb; _out << eb; _out << nl; _out << nl << "public virtual void ice_response" << spar << params << epar; _out << sb; - _out << nl << "Debug.Assert(response_ != null);"; - _out << nl << "response_" << spar << args << epar; + _out << nl << "System.Diagnostics.Debug.Assert(response_ != null);"; + _out << nl << "response_" << spar << args << epar << ";"; _out << eb; _out << nl; - _out << nl << "public virtual void ice_exception(Ice.Exception ex)"; + _out << nl << "public override void ice_exception(Ice.Exception ex)"; _out << sb; - _out << nl << "Debug.Assert(exception_ != null);"; + _out << nl << "System.Diagnostics.Debug.Assert(exception_ != null);"; _out << nl << "exception_(ex);"; _out << eb; |