summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-10-12 00:50:11 +0000
committerMarc Laukien <marc@zeroc.com>2001-10-12 00:50:11 +0000
commitf6cebb3284ed16cb3b8940c69b8b475855f8f0df (patch)
tree2df05a2a8b279661b964f230f23f36255cad0a8c /cpp/src/slice2cpp/Gen.cpp
parentslicified local exceptions (diff)
downloadice-f6cebb3284ed16cb3b8940c69b8b475855f8f0df.tar.bz2
ice-f6cebb3284ed16cb3b8940c69b8b475855f8f0df.tar.xz
ice-f6cebb3284ed16cb3b8940c69b8b475855f8f0df.zip
fixes
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 6c82d60e60d..68d6bef1577 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -112,7 +112,7 @@ Slice::Gen::generate(const UnitPtr& unit)
else
{
H << "\n#include <Ice/LocalObject.h>";
-// C << "\n#include <Ice/BasicStream.h>";
+ C << "\n#include <Ice/BasicStream.h>";
}
StringList includes = unit->includeFiles();
@@ -240,6 +240,13 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
C << sb;
C << eb;
}
+ else
+ {
+ H << nl << name << "();";
+ C << sp << nl << scoped.substr(2) << "::" << name << "()";
+ C << sb;
+ C << eb;
+ }
H << nl << name << "(const " << name << "&);";
C << sp << nl << scoped.substr(2) << "::" << name << "(const " << name << "& ex) : ";
@@ -1165,12 +1172,12 @@ Slice::Gen::DelegateMVisitor::visitOperation(const OperationPtr& p)
C << eb;
}
C << eb;
- C << nl << "throw ::Ice::UserException(__FILE__, __LINE__);";
+ C << nl << "throw ::Ice::UserException();";
}
else
*/
{
- C << nl << "throw ::Ice::UserException(__FILE__, __LINE__);";
+ C << nl << "throw ::Ice::UserException();";
}
C << eb;
writeAllocateCode(C, TypeStringList(), ret);
@@ -1755,6 +1762,12 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p)
}
bool
+Slice::Gen::ObjectVisitor::visitExceptionStart(const ExceptionPtr&)
+{
+ return false;
+}
+
+bool
Slice::Gen::ObjectVisitor::visitStructStart(const StructPtr&)
{
return false;