diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-11-16 14:55:39 -0500 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-11-16 14:55:39 -0500 |
commit | 4a8b144491d9f66a45a0cbdd651a8c785d6fb728 (patch) | |
tree | ba1fa5e6a6898627784289c0859461c0c6c0bf0f /cpp/src/slice2cpp/Gen.cpp | |
parent | Makefile update (diff) | |
parent | Added AMI tests (diff) | |
download | ice-4a8b144491d9f66a45a0cbdd651a8c785d6fb728.tar.bz2 ice-4a8b144491d9f66a45a0cbdd651a8c785d6fb728.tar.xz ice-4a8b144491d9f66a45a0cbdd651a8c785d6fb728.zip |
Merge branch 'master' of ssh://cvs.zeroc.com/home/git/ice
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rwxr-xr-x | cpp/src/slice2cpp/Gen.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 7694559b5fd..a608a38648b 100755 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -2987,6 +2987,7 @@ Slice::Gen::DelegateDVisitor::visitOperation(const OperationPtr& p) C << sb; C << nl << "__direct.servant()->__collocDispatch(__direct);"; C << eb; +#if 0 C << nl << "catch(const ::std::exception& __ex)"; C << sb; C << nl << "__direct.destroy();"; @@ -2997,6 +2998,13 @@ Slice::Gen::DelegateDVisitor::visitOperation(const OperationPtr& p) C << nl << "__direct.destroy();"; C << nl << "throw ::Ice::UnknownException(__FILE__, __LINE__, \"unknown c++ exception\");"; C << eb; +#else + C << nl << "catch(...)"; + C << sb; + C << nl << "__direct.destroy();"; + C << nl << "throw;"; + C << eb; +#endif C << nl << "__direct.destroy();"; C << eb; for(ExceptionList::const_iterator k = throws.begin(); k != throws.end(); ++k) |