summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/GenUtil.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-09-09 20:59:53 +0000
committerMarc Laukien <marc@zeroc.com>2001-09-09 20:59:53 +0000
commit7b34e5474383bb5870c4af6f29997f7df9482d4c (patch)
tree617267dd108f2d9a008b77a9ec08382386f67b92 /cpp/src/slice2cpp/GenUtil.cpp
parentfixes (diff)
downloadice-7b34e5474383bb5870c4af6f29997f7df9482d4c.tar.bz2
ice-7b34e5474383bb5870c4af6f29997f7df9482d4c.tar.xz
ice-7b34e5474383bb5870c4af6f29997f7df9482d4c.zip
completed structs; parser visitor changes
Diffstat (limited to 'cpp/src/slice2cpp/GenUtil.cpp')
-rw-r--r--cpp/src/slice2cpp/GenUtil.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/GenUtil.cpp b/cpp/src/slice2cpp/GenUtil.cpp
index 1a94c7a1a41..9fa50d2553c 100644
--- a/cpp/src/slice2cpp/GenUtil.cpp
+++ b/cpp/src/slice2cpp/GenUtil.cpp
@@ -287,6 +287,13 @@ Slice::writeMarshalUnmarshalCode(Output& out, const TypePtr& type, const string&
return;
}
+ StructPtr st = StructPtr::dynamicCast(type);
+ if (st)
+ {
+ out << nl << param << ".__" << func << stream << ");";
+ return;
+ }
+
SequencePtr seq = SequencePtr::dynamicCast(type);
if (seq)
{