summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/RubyUtil.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-05-23 15:02:14 -0700
committerMark Spruiell <mes@zeroc.com>2012-05-23 15:02:14 -0700
commit0ce3ea49125e83ba758c66ab6c88142315d047d3 (patch)
tree1d8c549acf22d5abeaa30fae67a292970f294a34 /cpp/src/Slice/RubyUtil.cpp
parentAdded implementation of optional data members encoding (not tested yet) (diff)
downloadice-0ce3ea49125e83ba758c66ab6c88142315d047d3.tar.bz2
ice-0ce3ea49125e83ba758c66ab6c88142315d047d3.tar.xz
ice-0ce3ea49125e83ba758c66ab6c88142315d047d3.zip
PHP port; misc. fixes
Diffstat (limited to 'cpp/src/Slice/RubyUtil.cpp')
-rwxr-xr-xcpp/src/Slice/RubyUtil.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp
index c9a3bae5820..d5f8f771a13 100755
--- a/cpp/src/Slice/RubyUtil.cpp
+++ b/cpp/src/Slice/RubyUtil.cpp
@@ -912,7 +912,9 @@ Slice::Ruby::CodeVisitor::visitExceptionStart(const ExceptionPtr& p)
//
// Emit the type information.
//
- _out << sp << nl << "T_" << name << " = ::Ice::__defineException('" << scoped << "', " << name << ", ";
+ const bool preserved = p->hasMetaData("preserve-slice") || p->inheritsMetaData("preserve-slice");
+ _out << sp << nl << "T_" << name << " = ::Ice::__defineException('" << scoped << "', " << name << ", "
+ << (preserved ? "true" : "false") << ", ";
if(!base)
{
_out << "nil";