summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Gen.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-03-22 12:06:30 +0100
committerJose <jose@zeroc.com>2019-03-22 12:06:30 +0100
commit44a4f449b29228597c7f1fa1bedc2f6cf57caeea (patch)
treee851662085f4aafcd2b1c1ece8472905bb35f1dd /cpp/src/slice2swift/Gen.cpp
parentAdd missing files (diff)
downloadice-44a4f449b29228597c7f1fa1bedc2f6cf57caeea.tar.bz2
ice-44a4f449b29228597c7f1fa1bedc2f6cf57caeea.tar.xz
ice-44a4f449b29228597c7f1fa1bedc2f6cf57caeea.zip
Fixes for ice_preMarshal/ice_postUnmarshal
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r--cpp/src/slice2swift/Gen.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp
index ab509811d30..4c09c3bec68 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -1064,6 +1064,22 @@ Gen::ValueVisitor::visitClassDefStart(const ClassDefPtr& p)
}
out << eb;
+ out << sp;
+ out << nl;
+ if(base)
+ {
+ out << "override ";
+ }
+ out << "public func ice_preMarshal() {}";
+
+ out << sp;
+ out << nl;
+ if(base)
+ {
+ out << "override ";
+ }
+ out << "public func ice_postUnmarshal() {}";
+
return true;
}