From 7b34e5474383bb5870c4af6f29997f7df9482d4c Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Sun, 9 Sep 2001 20:59:53 +0000 Subject: completed structs; parser visitor changes --- cpp/src/slice2cpp/GenUtil.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpp/src/slice2cpp/GenUtil.cpp') 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) { -- cgit v1.2.3